diff options
author | Etienne Buira <etienne.buira.lists@free.fr> | 2011-06-11 00:04:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-11 02:26:26 +0200 |
commit | 39dbe9b6b8fdd587793583c8296fecf94b3aee58 (patch) | |
tree | 79bdfe4a4fbbecee0e6f0bacac2d0cdfcfc417ee /ffmpeg.c | |
parent | 36204ed88e6c5eb54f36df2dea94b20e786b215f (diff) | |
download | ffmpeg-39dbe9b6b8fdd587793583c8296fecf94b3aee58.tar.gz |
Fix -t option for formats which holds dts and no pts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2727,7 +2727,7 @@ static int transcode(AVFormatContext **output_files, /* finish if recording time exhausted */ if (recording_time != INT64_MAX && - (pkt.pts != AV_NOPTS_VALUE || pkt.dts != AV_NOPTS_VALUE ? + (pkt.pts != AV_NOPTS_VALUE ? av_compare_ts(pkt.pts, ist->st->time_base, recording_time + start_time, (AVRational){1, 1000000}) : av_compare_ts(ist->pts, AV_TIME_BASE_Q, recording_time + start_time, (AVRational){1, 1000000}) |