diff options
author | Daniel Kang <daniel.d.kang@gmail.com> | 2011-01-02 05:01:46 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2011-01-02 05:01:46 +0000 |
commit | 7f8ffc4efddf796aa3aa8174fb008007cb8f8c1c (patch) | |
tree | b9ce564637b4a5e4a155dcea5951b96077b8274c | |
parent | 3a1cdcc798fd7cb60ef69d1d010f5d56218c4b3a (diff) | |
download | ffmpeg-7f8ffc4efddf796aa3aa8174fb008007cb8f8c1c.tar.gz |
Fix a floating point exception for invalid framerate, fixes issue 2470.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26188 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/yuv4mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index 99a1ce2f38..3a488649f3 100644 --- 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; |