Browse Source

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

fixes framerate detection for framerate_misdetected.wmv

Originally committed as revision 7384 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
4b96d28abc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/utils.c

+ 2
- 1
libavformat/utils.c View File

@@ -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++;



Loading…
Cancel
Save