Revision 1ca610c0

View differences:

libavformat/matroskadec.c
1304 1304
            st->codec->extradata = extradata;
1305 1305
            st->codec->extradata_size = extradata_size;
1306 1306
        } else if(track->codec_priv.data && track->codec_priv.size > 0){
1307
            st->codec->extradata = av_malloc(track->codec_priv.size);
1307
            st->codec->extradata = av_mallocz(track->codec_priv.size +
1308
                                              FF_INPUT_BUFFER_PADDING_SIZE);
1308 1309
            if(st->codec->extradata == NULL)
1309 1310
                return AVERROR(ENOMEM);
1310 1311
            st->codec->extradata_size = track->codec_priv.size;

Also available in: Unified diff