On Tue, Aug 05, 2025 at 07:31:15PM +0000, Jiasheng Jiang wrote:
> Move av_malloc() after the check for subsampling to avoid memory leak if 
> subsampling < 0 and av_malloc() succeeds.
> 
> Fixes: a41a2efc85 ("lavc/videotoolbox: add VP9 hardware acceleration")
> Signed-off-by: Jiasheng Jiang <jiashengjiangc...@gmail.com>
> ---
>  libavcodec/videotoolbox_vp9.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
than the original author, trying to rewrite it will not make it better.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to