Commit 0909f3ed authored by Paul B Mahol's avatar Paul B Mahol

zmbv: return meaningful error code

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 60a7fac6
......@@ -493,7 +493,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
c->bx = (c->width + c->bw - 1) / c->bw;
c->by = (c->height+ c->bh - 1) / c->bh;
if (!c->cur || !c->prev)
return -1;
return AVERROR(ENOMEM);
memset(c->cur, 0, avctx->width * avctx->height * (c->bpp / 8));
memset(c->prev, 0, avctx->width * avctx->height * (c->bpp / 8));
c->decode_intra= decode_intra;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment