diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-10 19:46:44 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-10 19:46:44 +0000 |
commit | 40938d9382c8438df76b2cf9039c40b4479678f1 (patch) | |
tree | db1efc720f351f9c17c5ebd3139de471851456f9 /ffmpeg.c | |
parent | f0cb55af88d81f8a0c7f97b31ff5783a1f412eaa (diff) | |
download | ffmpeg-40938d9382c8438df76b2cf9039c40b4479678f1.tar.gz |
Use av_compare_ts to compare against the -t end time instead of using
floating point.
Should fix different results between PPC and x86 for the idroq-video-encode
FATE test.
Originally committed as revision 21745 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2319,7 +2319,7 @@ static int av_encode(AVFormatContext **output_files, } /* finish if recording time exhausted */ - if (pkt.pts * av_q2d(ist->st->time_base) >= (recording_time / 1000000.0)) { + if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time, (AVRational){1, 1000000}) >= 0) { ist->is_past_recording_time = 1; goto discard_packet; } |