mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/codec_par: always clear extradata_size in avcodec_parameters_to_context()
Missed ind383ae43c2
. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commitc4e3d6cdb0
)
This commit is contained in:
parent
13e93ffbfd
commit
506fbe681c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user