mpeg4p2_ffmpeg: fix shadows a global declaration

Origin commit data
------------------
Branch: master
Commit: 715a72fda8
Author: max_10 <max_10@gmx.de>
Date: 2019-01-22 (Tue, 22 Jan 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2019-01-22 04:14:21 +01:00
parent 72af37ecef
commit 9f822b60fd

View File

@@ -26,12 +26,12 @@ static Mpeg4P2Context *mpeg4p2_context_open()
return context;
}
static void mpeg4p2_write(Context_t *ctx, Mpeg4P2Context *mpeg4p2_ctx, Track_t *track, int64_t start_time, int64_t *currentVideoPts, int64_t *latestPts, AVPacket *pkt)
static void mpeg4p2_write(Context_t *ctx, Mpeg4P2Context *mpeg4p2_ctx, Track_t *track, int64_t start_time, int64_t *currentVideoPts, int64_t *latest_Pts, AVPacket *pkt)
{
*currentVideoPts = track->pts = doCalcPts(start_time, mpeg4p2_ctx->ctx->time_base_out, pkt->pts);
if ((*currentVideoPts > *latestPts) && (*currentVideoPts != INVALID_PTS_VALUE))
if ((*currentVideoPts > *latest_Pts) && (*currentVideoPts != INVALID_PTS_VALUE))
{
*latestPts = *currentVideoPts;
*latest_Pts = *currentVideoPts;
}
track->dts = doCalcPts(start_time, mpeg4p2_ctx->ctx->time_base_out, pkt->dts);