diff options
author | Jiasheng Jiang <jiashengjiangcool@gmail.com> | 2025-08-05 19:31:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2025-08-07 03:07:43 +0200 |
commit | 8b4e6ccb13f10752bc5c2a963478c7f3764a0cfe (patch) | |
tree | 505f0db69e7cc36061783734a0eb96dbb129882c /doc/examples | |
parent | d5040b5560c95cdbf134b5e4b1ee287568ef9fd8 (diff) | |
download | ffmpeg-8b4e6ccb13f10752bc5c2a963478c7f3764a0cfe.tar.gz |
libavcodec/videotoolbox_vp9: Move av_malloc() to avoid memory leak
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 <jiashengjiangcool@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions