Browse Source

zmbv: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.1
Paul B Mahol 12 years ago
parent
commit
0909f3edbd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/zmbv.c

+ 1
- 1
libavcodec/zmbv.c View File

@@ -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;


Loading…
Cancel
Save