Commit 2a930fa2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3ca14aa5'

* commit '3ca14aa5':
  rl2: Avoid a division by zero

See: f371396dMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6c18775b 3ca14aa5
......@@ -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;
......
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