summaryrefslogtreecommitdiff
path: root/libavcodec/y41penc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/y41penc.c')
-rw-r--r--libavcodec/y41penc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index 05bac7d685..aafae8ee8d 100644
--- a/libavcodec/y41penc.c
+++ b/libavcodec/y41penc.c
@@ -48,9 +48,8 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint8_t *y, *u, *v;
int i, j, ret;
- if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5)) < 0) {
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5)) < 0)
return ret;
- }
avctx->coded_frame->reference = 0;
avctx->coded_frame->key_frame = 1;