Browse Source

rl2demux: Fix FPE

Fixes Ticket788
Bug found by Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
f371396dfb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/rl2.c

+ 3
- 0
libavformat/rl2.c 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;



Loading…
Cancel
Save