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
This commit is contained in:
Daniel Kang 2011-01-02 05:01:46 +00:00 committed by Carl Eugen Hoyos
parent 3a1cdcc798
commit 7f8ffc4efd
1 changed files with 1 additions and 1 deletions

View File

@ -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;