OSDN Git Service

Revert "Improve frame rate guessing for streams with two fields per frame."
authorMåns Rullgård <mans@mansr.com>
Sat, 28 Feb 2009 15:15:54 +0000 (15:15 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 28 Feb 2009 15:15:54 +0000 (15:15 +0000)
This reverts r17656, which broke many tests.  Further investigation
is necessary.

Originally committed as revision 17658 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 864fd9e..9354b75 100644 (file)
@@ -2115,11 +2115,6 @@ int av_find_stream_info(AVFormatContext *ic)
             int64_t last= last_dts[index];
             int64_t duration= pkt->dts - last;
 
-            if (st->codec->ticks_per_frame == 2 &&
-                st->parser &&
-                st->parser->repeat_pict == 0)
-                    duration *= 2;  // two fields are needed per frame
-
             if(pkt->dts != AV_NOPTS_VALUE && last != AV_NOPTS_VALUE && duration>0){
                 double dur= duration * av_q2d(st->time_base);