aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bitstream.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-24 13:15:48 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-19 13:18:04 +0200
commit4513300989502090c4fd6560544dce399a8cd53c (patch)
treea1b9155bac0a73be79e4d9f658f73265015c00c0 /libavcodec/bitstream.h
parentd692c429380ff254ea449ef62b07fb0542109200 (diff)
downloadffmpeg-4513300989502090c4fd6560544dce399a8cd53c.tar.gz
avcodec/rkmppdec: Fix double-free on error
After having created the AVBuffer that is put into frame->buf[0], ownership of several objects (namely an AVDRMFrameDescriptor, an MppFrame and some AVBufferRefs framecontextref and decoder_ref) has passed to the AVBuffer and therefore to the frame. Yet it has nevertheless been freed manually on error afterwards, which would lead to a double-free as soon as the AVFrame is unreferenced. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/bitstream.h')
0 files changed, 0 insertions, 0 deletions