You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rl2demux: Fix FPE
Fixes Ticket788 Bug found by Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -138,6 +138,9 @@ static av_cold int rl2_read_header(AVFormatContext *s,
|
|||||||
|
|
||||||
/** setup audio stream if present */
|
/** setup audio stream if present */
|
||||||
if(sound_rate){
|
if(sound_rate){
|
||||||
|
if(channels <= 0)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
pts_num = def_sound_size;
|
pts_num = def_sound_size;
|
||||||
pts_den = rate;
|
pts_den = rate;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user