On 26/06/15 01:32, Andreas Cadhalpun wrote: > This fixes a segfault when decoding multi-channel MP3onMP4 files. > > This is similar to commit cb72230d for MPADSPContext. > > Signed-off-by: Andreas Cadhalpun <[email protected]> > --- > libavcodec/mpegaudiodec_template.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/mpegaudiodec_template.c > b/libavcodec/mpegaudiodec_template.c > index 9081a3c..22290cc 100644 > --- a/libavcodec/mpegaudiodec_template.c > +++ b/libavcodec/mpegaudiodec_template.c > @@ -1893,6 +1893,7 @@ static av_cold int decode_init_mp3on4(AVCodecContext * > avctx) > s->mp3decctx[i]->adu_mode = 1; > s->mp3decctx[i]->avctx = avctx; > s->mp3decctx[i]->mpadsp = s->mp3decctx[0]->mpadsp; > + s->mp3decctx[i]->fdsp = s->mp3decctx[0]->fdsp; > } > > return 0; >
Looks good, thanks for spotting it. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
