From 27dfcdee6f033e640a0244eb4d1e016c116c73dd Mon Sep 17 00:00:00 2001 From: mru Date: Sat, 28 Feb 2009 15:15:54 +0000 Subject: [PATCH] Revert "Improve frame rate guessing for streams with two fields per frame." This reverts r17656, which broke many tests. Further investigation is necessary. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17658 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/utils.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 864fd9e54..9354b7588 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); -- 2.39.2