[FFmpeg-cvslog] r21745 - trunk/ffmpeg.c
reimar
subversion
Wed Feb 10 20:46:44 CET 2010
Author: reimar
Date: Wed Feb 10 20:46:44 2010
New Revision: 21745
Log:
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.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Wed Feb 10 20:43:57 2010 (r21744)
+++ trunk/ffmpeg.c Wed Feb 10 20:46:44 2010 (r21745)
@@ -2319,7 +2319,7 @@ static int av_encode(AVFormatContext **o
}
/* 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;
}
More information about the ffmpeg-cvslog
mailing list