mpeg4p2_ffmpeg: fix shadows a global declaration

This commit is contained in:
max_10
2019-01-22 04:14:21 +01:00
committed by Thilo Graf
parent 0500967a2a
commit 72367605fc

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);