aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-21 22:02:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 21:51:53 +0100
commit532731369a0036e6d3016f6c901a8f8a5a8640dd (patch)
tree594756d6ff307e05939c9bf85a0d4e2166b73a19
parent1c930fe91544a4aae009a4c4b8d638c6a1aee9f4 (diff)
downloadffmpeg-532731369a0036e6d3016f6c901a8f8a5a8640dd.tar.gz
ipmovie: fix FPE
Fixed Ticket807 Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 8d960fbc70d5d7b6cd62db22712a8d5c2c5e26bf) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/ipmovie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index 9b42ee2948..24dc24bec8 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) {