diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-15 18:18:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-01-06 13:31:39 +0100 |
commit | aaf208329f6ed21f51d7bcfa6b50ea41e0825c4e (patch) | |
tree | fb4a72180b2196f3656923f6b80c63e5c44beed0 /libavcodec | |
parent | 01b60883ea3af2794c4279bfe7f01c31e7f55a61 (diff) | |
download | ffmpeg-aaf208329f6ed21f51d7bcfa6b50ea41e0825c4e.tar.gz |
zmbv: return more meaningful error codes.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/zmbv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 0733fa70d4..8e0db8b531 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -485,7 +485,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac zret = inflateReset(&c->zstream); if (zret != Z_OK) { av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", zret); - return -1; + return AVERROR_UNKNOWN; } tmp = av_realloc(c->cur, avctx->width * avctx->height * (c->bpp / 8)); @@ -639,7 +639,7 @@ static av_cold int decode_init(AVCodecContext *avctx) zret = inflateInit(&c->zstream); if (zret != Z_OK) { av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret); - return -1; + return AVERROR_UNKNOWN; } return 0; |