diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-17 23:27:59 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-18 21:09:02 +0200 |
commit | 3ccfd27f1d0a67114baf6f9afd6353214d041fd7 (patch) | |
tree | ab3de8c59f9a8b66d9209fc5f2c21dda744ce68d /fftools | |
parent | 504c60660d3194758823ddd45ceddb86e35d806f (diff) | |
download | ffmpeg-3ccfd27f1d0a67114baf6f9afd6353214d041fd7.tar.gz |
fftools/ffmpeg: Fix declaration-after-statement warning
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 3ca93fc8fa..5678f6e7b9 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -4236,10 +4236,11 @@ static int get_input_packet(InputFile *f, AVPacket **pkt) float scale = f->rate_emu ? 1.0 : f->readrate; for (i = 0; i < f->nb_streams; i++) { InputStream *ist = input_streams[f->ist_index + i]; + int64_t stream_ts_offset, pts, now; if (!ist->nb_packets) continue; - int64_t stream_ts_offset = FFMAX(ist->first_dts != AV_NOPTS_VALUE ? ist->first_dts : 0, file_start); - int64_t pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE); - int64_t now = (av_gettime_relative() - ist->start)*scale + stream_ts_offset; + stream_ts_offset = FFMAX(ist->first_dts != AV_NOPTS_VALUE ? ist->first_dts : 0, file_start); + pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE); + now = (av_gettime_relative() - ist->start) * scale + stream_ts_offset; if (pts > now) return AVERROR(EAGAIN); } |