]> git.sesse.net Git - ffmpeg/commit
avcodec/alacenc: Don't free unnecessarily
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 13 Sep 2020 18:27:34 +0000 (20:27 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 18 Sep 2020 00:50:34 +0000 (02:50 +0200)
commitce482266a641a2cbd2900c0c2e4afb24f26cc422
tree0b009ac5027c82aec473b9ca4cc451f396f621fd
parentacda9ff6ce2b94a199a6967118fa19d58a09c146
avcodec/alacenc: Don't free unnecessarily

The init function of the ALAC encoder calls its own close function
if a call to ff_lpc_init() fails; yet nothing has been allocated before
that point (except extradata which is freed generically) and ff_lpc_init()
can be expected to clean up after itself on error (the documentation does
not say anything to the contrary and the current implementation can only
fail if the only allocation fails, so there is nothing to clean up on
error anyway), so this is unnecessary.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/alacenc.c