Commit d383ae43 authored by James Almer's avatar James Almer

avcodec/codec_par: always free side data in the destination AVCodecContext

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 8d1316e5
......@@ -253,8 +253,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
break;
}
av_freep(&codec->extradata);
if (par->extradata) {
av_freep(&codec->extradata);
codec->extradata = av_mallocz(par->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
if (!codec->extradata)
return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment