aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-11-10 05:07:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-19 23:35:09 +0100
commit99f505d2df521d83d53f7f9f9b359280f5af168b (patch)
treee1fbd599a770202220255f09b669109864887909 /libavcodec/hevcdec.c
parentabf5e7bc212f4cc1e022907f92506ab33c19de44 (diff)
downloadffmpeg-99f505d2df521d83d53f7f9f9b359280f5af168b.tar.gz
avformat/icecast: Free the right buffer on error
In case an AVBPrint was not complete, icecast_open() would free some buffers that have not been allocated yet instead of freeing the data of the AVBPrint (if they have been allocated). Because this error does not trigger a jump to the general cleanup section any more, one can moreover remove a (now unnecessary) initialization of a pointer. Furthermore, finalizing an AVBPrint can fail (namely when the string inside the AVBPrint has not been allocated yet) and so this needs to be checked. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevcdec.c')
0 files changed, 0 insertions, 0 deletions