aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg4audio.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-07-31 11:42:23 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-02 18:31:59 +0200
commit28817b90fc3ea9f7d3a3a8864fdb3191cb95fe76 (patch)
treecd8a6fe37d1a8b79cc954735259985e9ba0c0866 /libavcodec/mpeg4audio.c
parent80cc9b81deba0122a531f63b165f661a816d13c5 (diff)
downloadffmpeg-28817b90fc3ea9f7d3a3a8864fdb3191cb95fe76.tar.gz
avformat/hls_sample_encryption: Always free AC3HeaderInfo on error
The code currently presumes that a return value of AVERROR(ENOMEM) implies that ac3hdr could not be allocated, so it need not be freed. Yet any avpriv_ac3_parse_header() might allocate more than the AC3HeaderInfo internally (it doesn't currently), so simply free it unconditionally. Fixes Coverity issues #1492870 and #1492868. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg4audio.c')
0 files changed, 0 insertions, 0 deletions