rl2demux: Fix FPE

Fixes Ticket788
Bug found by Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f371396dfb)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-18 23:54:56 +01:00
parent d1e1674f66
commit 0815a2907a

View File

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