Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-13 04:52:39 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-17 01:09:08 +0300
commita265e6604eb411316ec7ec91ba1bfaa37c71ef2d (patch)
tree62e4b687c186ec147ea59f3aeea58610139b6c01 /libavcodec/vble.c
parentb128344dfcfcf167cd7f6b12b82fddc7efddc98d (diff)
avcodec/vble: Don't free buffer known to be NULL
Freeing a buffer allocated in the VBLE decoder's init function is the only thing the decoder's close function does and this implies that it is unnecessary to call it in case said allocation fails. Yet this is what has been done. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r--libavcodec/vble.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index c48c13127a..2cddd550b1 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -197,7 +197,6 @@ static av_cold int vble_decode_init(AVCodecContext *avctx)
if (!ctx->val) {
av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n");
- vble_decode_close(avctx);
return AVERROR(ENOMEM);
}