[FFmpeg-devel] [PATCH] avcodec/vaapi_encode: remove a duplicate av_freep

tong1.wu at intel.com tong1.wu at intel.com
Tue Feb 20 08:27:54 EET 2024


From: Tong Wu <tong1.wu at intel.com>

Signed-off-by: Tong Wu <tong1.wu at 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);
-- 
2.41.0.windows.1



More information about the ffmpeg-devel mailing list