Message ID | 20240420234312.36464-1-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | c4e3d6cdb066425a5f5a2e05def9470a47a6082c |
Headers | show |
Series | [FFmpeg-devel,1/2] avcodec/codec_par: always clear extradata_size in avcodec_parameters_to_context() | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On 4/20/2024 8:43 PM, James Almer wrote: > Missed in d383ae43c266b160348db04f2fd17ccf30286784. > > Signed-off-by: James Almer <jamrial@gmail.com> > --- > libavcodec/codec_par.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c > index 212cb97d77..790ea01d10 100644 > --- a/libavcodec/codec_par.c > +++ b/libavcodec/codec_par.c > @@ -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) Will apply the set.
diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c index 212cb97d77..790ea01d10 100644 --- a/libavcodec/codec_par.c +++ b/libavcodec/codec_par.c @@ -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)
Missed in d383ae43c266b160348db04f2fd17ccf30286784. Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/codec_par.c | 1 + 1 file changed, 1 insertion(+)