[FFmpeg-cvslog] rl2demux: Fix FPE
Michael Niedermayer
git at videolan.org
Mon Dec 19 01:23:44 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 18 23:54:56 2011 +0100| [f371396dfb95c116a05e9b9f690fa916bb2d815e] | committer: Michael Niedermayer
rl2demux: Fix FPE
Fixes Ticket788
Bug found by Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f371396dfb95c116a05e9b9f690fa916bb2d815e
---
libavformat/rl2.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavformat/rl2.c b/libavformat/rl2.c
index 530e0df..78edec5 100644
--- a/libavformat/rl2.c
+++ b/libavformat/rl2.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list