Commit c4e3d6cd authored by James Almer's avatar James Almer

avcodec/codec_par: always clear extradata_size in avcodec_parameters_to_context()

Missed in d383ae43.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent ecf87dd2
......@@ -250,6 +250,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
}
av_freep(&codec->extradata);
codec->extradata_size = 0;
if (par->extradata) {
codec->extradata = av_mallocz(par->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
if (!codec->extradata)
......
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