Browse Source

mp3on4: copy MPADSPContext from first context to all contexts.

Fixes segfault when decoding multi-channel MP3onMP4 files.
tags/n0.9
Justin Ruggles 13 years ago
parent
commit
cb72230dfa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mpegaudiodec.c

+ 1
- 0
libavcodec/mpegaudiodec.c View File

@@ -1959,6 +1959,7 @@ static int decode_init_mp3on4(AVCodecContext * avctx)
s->mp3decctx[i] = av_mallocz(sizeof(MPADecodeContext)); s->mp3decctx[i] = av_mallocz(sizeof(MPADecodeContext));
s->mp3decctx[i]->adu_mode = 1; s->mp3decctx[i]->adu_mode = 1;
s->mp3decctx[i]->avctx = avctx; s->mp3decctx[i]->avctx = avctx;
s->mp3decctx[i]->mpadsp = s->mp3decctx[0]->mpadsp;
} }


return 0; return 0;


Loading…
Cancel
Save