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:
b3506cb
)
1/0l fix
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 22 Dec 2004 01:33:04 +0000
(
01:33
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 22 Dec 2004 01:33:04 +0000
(
01:33
+0000)
Originally committed as revision 3770 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
6bc2c00
..
230f891
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1854,7
+1854,7
@@
int av_find_stream_info(AVFormatContext *ic)
int_fps= av_rescale(st->r_frame_rate, 1, st->r_frame_rate_base);
- if(av_rescale(st->r_frame_rate, 1, int_fps) == st->r_frame_rate_base){
+ if(
int_fps>0 &&
av_rescale(st->r_frame_rate, 1, int_fps) == st->r_frame_rate_base){
st->r_frame_rate= int_fps;
st->r_frame_rate_base= 1;
}