[FFmpeg-cvslog] ipmovie: fix FPE

Michael Niedermayer git at videolan.org
Thu Dec 22 00:34:17 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 21 22:02:01 2011 +0100| [8d960fbc70d5d7b6cd62db22712a8d5c2c5e26bf] | committer: Michael Niedermayer

ipmovie: fix FPE
Fixed Ticket807
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=8d960fbc70d5d7b6cd62db22712a8d5c2c5e26bf
---

 libavformat/ipmovie.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index 9b42ee2..24dc24b 100644
--- a/libavformat/ipmovie.c
+++ b/libavformat/ipmovie.c
@@ -115,7 +115,7 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb,
 
     int chunk_type;
 
-    if (s->audio_chunk_offset) {
+    if (s->audio_chunk_offset && s->audio_channels && s->audio_bits) {
 
         /* adjust for PCM audio by skipping chunk header */
         if (s->audio_type != CODEC_ID_INTERPLAY_DPCM) {



More information about the ffmpeg-cvslog mailing list