From 925fad499db6415a51875e0f4095de68406ff685 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 8 Aug 2025 10:33:34 -0700 Subject: [PATCH] lavc/bsf/smpte436m_to_eia608: fix memory leak -- forgot to free input av_packet Signed-off-by: Jacob Lifshay --- libavcodec/bsf/smpte436m_to_eia608.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/bsf/smpte436m_to_eia608.c b/libavcodec/bsf/smpte436m_to_eia608.c index 83a220cd1f..529ae88794 100644 --- a/libavcodec/bsf/smpte436m_to_eia608.c +++ b/libavcodec/bsf/smpte436m_to_eia608.c @@ -68,6 +68,8 @@ static int ff_smpte436m_to_eia608_filter(AVBSFContext *ctx, AVPacket *out) // verified it won't fail by running it above av_smpte_291m_anc_8bit_extract_cta_708(&anc, out->data, ctx); + av_packet_free(&in); + return 0; } if (ret != AVERROR_EOF)