[Ffmpeg-cvslog] r6847 - trunk/ffmpeg.c

michael subversion
Tue Oct 31 01:39:03 CET 2006


Author: michael
Date: Tue Oct 31 01:39:02 2006
New Revision: 6847

Modified:
   trunk/ffmpeg.c

Log:
better timebase selection heuristic for video stream copy
fixes -ss -t -vcodec copy


Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Tue Oct 31 01:39:02 2006
@@ -1535,7 +1535,10 @@
             codec->bit_rate = icodec->bit_rate;
             codec->extradata= icodec->extradata;
             codec->extradata_size= icodec->extradata_size;
-            codec->time_base = icodec->time_base;
+            if(av_q2d(icodec->time_base) > av_q2d(ist->st->time_base))
+                codec->time_base = icodec->time_base;
+            else
+                codec->time_base = ist->st->time_base;
             switch(codec->codec_type) {
             case CODEC_TYPE_AUDIO:
                 codec->sample_rate = icodec->sample_rate;




More information about the ffmpeg-cvslog mailing list