aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorEtienne Buira <etienne.buira.lists@free.fr>2011-06-11 00:04:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-11 02:26:26 +0200
commit39dbe9b6b8fdd587793583c8296fecf94b3aee58 (patch)
tree79bdfe4a4fbbecee0e6f0bacac2d0cdfcfc417ee /ffmpeg.c
parent36204ed88e6c5eb54f36df2dea94b20e786b215f (diff)
downloadffmpeg-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a8ac9bb209..35395a99a4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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})