]> git.sesse.net Git - ffmpeg/commitdiff
ipmovie: fix FPE
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Dec 2011 21:02:01 +0000 (22:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Dec 2011 23:25:47 +0000 (00:25 +0100)
Fixed Ticket807
Bug found by: Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ipmovie.c

index 9b42ee294801e37e3b84631dce08ce4efe31e42b..24dc24bec83643e377153f8dfe791d0b7f088282 100644 (file)
@@ -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) {