mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
3a1cdcc798
commit
7f8ffc4efd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user