aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-18 23:18:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-21 13:34:33 +0200
commit277f051ff6a9c25a8bbfee3e69f74632d0d83252 (patch)
treeb19c76c7ff67c3a9cd66f7a84c388772d5ca3369
parent8cdf1bae942c29a39a9b921449f6dc77cd17f3ba (diff)
downloadffmpeg-277f051ff6a9c25a8bbfee3e69f74632d0d83252.tar.gz
avcodec/pthread_frame: Fix leak of coded side data
Happens in the mov-elst-ends-betn-b-and-i and mov-ibi-elst-starts-b FATE tests with frame-threading. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/pthread_frame.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c
index a30312021e..67f09c1f48 100644
--- a/libavcodec/pthread_frame.c
+++ b/libavcodec/pthread_frame.c
@@ -731,6 +731,8 @@ void ff_frame_thread_free(AVCodecContext *avctx, int thread_count)
av_packet_free(&ctx->internal->last_pkt_props);
av_freep(&ctx->internal);
av_buffer_unref(&ctx->hw_frames_ctx);
+ av_frame_side_data_free(&ctx->decoded_side_data,
+ &ctx->nb_decoded_side_data);
}
av_frame_free(&p->frame);