Commit 6fc82c52 authored by michael's avatar michael

ignore duration of the first 2 frames in the max-time break check

fixes framerate detection for framerate_misdetected.wmv


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7384 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2babcb20
......@@ -1880,7 +1880,8 @@ int av_find_stream_info(AVFormatContext *ic)
read_size += pkt->size;
st = ic->streams[pkt->stream_index];
st->codec_info_duration += pkt->duration;
if(st->codec_info_nb_frames>1) //FIXME move codec_info_nb_frames and codec_info_duration from AVStream into this func
st->codec_info_duration += pkt->duration;
if (pkt->duration != 0)
st->codec_info_nb_frames++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment