mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '3ca14aa5964ea5d11f7a15f9fff17924d6096d44'
* commit '3ca14aa5964ea5d11f7a15f9fff17924d6096d44':
rl2: Avoid a division by zero
See: f371396dfb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2a930fa29e
@ -136,8 +136,10 @@ static av_cold int rl2_read_header(AVFormatContext *s)
|
||||
|
||||
/** setup audio stream if present */
|
||||
if(sound_rate){
|
||||
if(channels <= 0)
|
||||
if (!channels || channels > 42) {
|
||||
av_log(s, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
pts_num = def_sound_size;
|
||||
pts_den = rate;
|
||||
|
Loading…
Reference in New Issue
Block a user