diff options
Diffstat (limited to 'libavcodec/pcxenc.c')
-rw-r--r-- | libavcodec/pcxenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pcxenc.c b/libavcodec/pcxenc.c index 27af2aa9dd..01c1b64ee2 100644 --- a/libavcodec/pcxenc.c +++ b/libavcodec/pcxenc.c @@ -153,9 +153,8 @@ static int pcx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, line_bytes = (line_bytes + 1) & ~1; max_pkt_size = 128 + avctx->height * 2 * line_bytes * nplanes + (pal ? 256*3 + 1 : 0); - if ((ret = ff_alloc_packet2(avctx, pkt, max_pkt_size)) < 0) { + if ((ret = ff_alloc_packet2(avctx, pkt, max_pkt_size)) < 0) return ret; - } buf = pkt->data; buf_end = pkt->data + pkt->size; |