comparison utils.c @ 1608:70ce246379b5 libavformat

ignore duration of the first 2 frames in the max-time break check fixes framerate detection for framerate_misdetected.wmv
author michael
date Fri, 29 Dec 2006 21:41:06 +0000
parents edb923014029
children cab8434bfeab
comparison
equal deleted inserted replaced
1607:edb923014029 1608:70ce246379b5
1878 } 1878 }
1879 1879
1880 read_size += pkt->size; 1880 read_size += pkt->size;
1881 1881
1882 st = ic->streams[pkt->stream_index]; 1882 st = ic->streams[pkt->stream_index];
1883 st->codec_info_duration += pkt->duration; 1883 if(st->codec_info_nb_frames>1) //FIXME move codec_info_nb_frames and codec_info_duration from AVStream into this func
1884 st->codec_info_duration += pkt->duration;
1884 if (pkt->duration != 0) 1885 if (pkt->duration != 0)
1885 st->codec_info_nb_frames++; 1886 st->codec_info_nb_frames++;
1886 1887
1887 { 1888 {
1888 int index= pkt->stream_index; 1889 int index= pkt->stream_index;