projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6268538
)
ignore duration of the first 2 frames in the max-time break check
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 29 Dec 2006 21:41:06 +0000
(21:41 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 29 Dec 2006 21:41:06 +0000
(21:41 +0000)
fixes framerate detection for framerate_misdetected.wmv
Originally committed as revision 7384 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
118a78f
..
bb3376c
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-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++;