Browse Source

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>
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
a265e6604e
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/vble.c

+ 0
- 1
libavcodec/vble.c View File

@@ -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);
}



Loading…
Cancel
Save