Commit 7f8ffc4e authored by Daniel Kang's avatar Daniel Kang Committed by Carl Eugen Hoyos

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
parent 3a1cdcc7
...@@ -316,7 +316,7 @@ static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -316,7 +316,7 @@ static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap)
pix_fmt = alt_pix_fmt; pix_fmt = alt_pix_fmt;
} }
if (raten == 0 && rated == 0) { if (raten <= 0 || rated <= 0) {
// Frame rate unknown // Frame rate unknown
raten = 25; raten = 25;
rated = 1; rated = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment