OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a1cdcc
)
Fix a floating point exception for invalid framerate, fixes issue 2470.
author
Daniel Kang
<daniel.d.kang@gmail.com>
Sun, 2 Jan 2011 05:01:46 +0000
(
05:01
+0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 2 Jan 2011 05:01:46 +0000
(
05:01
+0000)
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26188 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/yuv4mpeg.c
patch
|
blob
|
history
diff --git
a/libavformat/yuv4mpeg.c
b/libavformat/yuv4mpeg.c
index
99a1ce2
..
3a48864
100644
(file)
--- a/
libavformat/yuv4mpeg.c
+++ b/
libavformat/yuv4mpeg.c
@@
-316,7
+316,7
@@
static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap)
pix_fmt = alt_pix_fmt;
}
- if (raten
== 0 && rated =
= 0) {
+ if (raten
<= 0 || rated <
= 0) {
// Frame rate unknown
raten = 25;
rated = 1;