diff options
Diffstat (limited to 'libavcodec/j2kenc.c')
-rw-r--r-- | libavcodec/j2kenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index f201c2cc49..56ccd9ef9c 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -927,9 +927,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, int tileno, ret; J2kEncoderContext *s = avctx->priv_data; - if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*9 + FF_MIN_BUFFER_SIZE)) < 0) { + if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*9 + FF_MIN_BUFFER_SIZE)) < 0) return ret; - } // init: s->buf = s->buf_start = pkt->data; |