Commit f371396d authored by Michael Niedermayer's avatar Michael Niedermayer

rl2demux: Fix FPE

Fixes Ticket788
Bug found by Oana Stratulat
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a9ef21bb
......@@ -138,6 +138,9 @@ static av_cold int rl2_read_header(AVFormatContext *s,
/** setup audio stream if present */
if(sound_rate){
if(channels <= 0)
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