Message ID | 20240220062754.1912-1-tong1.wu@intel.com |
---|---|
State | Accepted |
Commit | cfa802bdc3589f9e970e59e699c3413ebd65c26e |
Headers | show |
Series | [FFmpeg-devel] avcodec/vaapi_encode: remove a duplicate av_freep | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
On Di, 2024-02-20 at 14:27 +0800, tong1.wu-at-intel.com@ffmpeg.org wrote: > From: Tong Wu <tong1.wu@intel.com> > > Signed-off-by: Tong Wu <tong1.wu@intel.com> > --- > libavcodec/vaapi_encode.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c > index 86f4110cd2..808b79c0c7 100644 > --- a/libavcodec/vaapi_encode.c > +++ b/libavcodec/vaapi_encode.c > @@ -914,7 +914,6 @@ static int vaapi_encode_free(AVCodecContext *avctx, > for (i = 0; i < pic->nb_slices; i++) > av_freep(&pic->slices[i].codec_slice_params); > } > - av_freep(&pic->codec_picture_params); > > av_frame_free(&pic->input_image); > av_frame_free(&pic->recon_image); LGTM, will apply. - Haihao
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 86f4110cd2..808b79c0c7 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -914,7 +914,6 @@ static int vaapi_encode_free(AVCodecContext *avctx, for (i = 0; i < pic->nb_slices; i++) av_freep(&pic->slices[i].codec_slice_params); } - av_freep(&pic->codec_picture_params); av_frame_free(&pic->input_image); av_frame_free(&pic->recon_image);