]> git.sesse.net Git - ffmpeg/commit
avcodec/utils: Don't forget cleaning up when allocating priv_data fails
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 24 Sep 2020 21:54:17 +0000 (23:54 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 1 Oct 2020 11:19:42 +0000 (13:19 +0200)
commitd1dcc20126f3df52762bf5972a282d1699ef1ca8
tree1aacc4467b0cc6e81e06231a0742d1263da931df
parentc6e54d14c55221b7380a0e86d7a42b60ff9e5eeb
avcodec/utils: Don't forget cleaning up when allocating priv_data fails

Allocating an AVCodecContext's priv_data used to be the first object
allocated in avcodec_open2(), so it was unnecessary to goto free_and_end
(which does the cleanup) upon error here. But this is no longer so since
f3a29b750a5979ae6847879fba758faf1fae88d0.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/utils.c