changeset 4608:161a36f844ce libavformat

Revert "Improve frame rate guessing for streams with two fields per frame." This reverts r17656, which broke many tests. Further investigation is necessary.
author mru
date Sat, 28 Feb 2009 15:15:54 +0000
parents 075a4add0487
children 065557d6fffb
files utils.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sat Feb 28 13:14:46 2009 +0000
+++ b/utils.c	Sat Feb 28 15:15:54 2009 +0000
@@ -2115,11 +2115,6 @@
             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);