diff options
-rw-r--r-- | libavcodec/bink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c index b0775284ae..a6cfb71f0c 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -1163,13 +1163,13 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac int bits_count = pkt->size << 3; if (c->version > 'b') { - if(c->pic.data[0]) - avctx->release_buffer(avctx, &c->pic); + if(c->pic.data[0]) + avctx->release_buffer(avctx, &c->pic); - if(avctx->get_buffer(avctx, &c->pic) < 0){ - av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); - return -1; - } + if(avctx->get_buffer(avctx, &c->pic) < 0){ + av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); + return -1; + } } else { if(avctx->reget_buffer(avctx, &c->pic) < 0){ av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); |