diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-07-27 20:21:33 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-07-27 20:21:33 +0000 |
commit | 0909f3edbdfaf480ba720f59f3743f5d95e3c059 (patch) | |
tree | 4a6d43911570270526aec1672fe12db20cea5f95 | |
parent | 60a7fac61b815610f8fd7d8a24c5fd764b245f4e (diff) | |
download | ffmpeg-0909f3edbdfaf480ba720f59f3743f5d95e3c059.tar.gz |
zmbv: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/zmbv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 7f3b326dd1..215e87ae63 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -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; |