aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-14 05:39:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-17 00:09:08 +0200
commitfe63b3eedcb2b92b3e086676ebed470d9f0ed64d (patch)
treee96b5be0a4c75b0cb955105e6df2f24b6464c0f5 /libavformat
parentf9215d0bb20242299f3654fd4646511665b20c4c (diff)
downloadffmpeg-fe63b3eedcb2b92b3e086676ebed470d9f0ed64d.tar.gz
avcodec/ffv1: Simplify cleanup after allocation failure
Now that ff_ffv1_close() is called upon failure for both the FFV1 encoder and decoder, the code contained therein can be used to free the partially allocated slice contexts if allocating the slice contexts failed. One just has to set the correct number of slice contexts on error. This allows to remove the code for freeing partially allocated slice contexts in ff_ffv1_init_slice_contexts(). Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions