summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-04-25 16:01:58 +0200
committerDiego Biurrun <diego@biurrun.de>2011-04-25 16:01:58 +0200
commita14c08247d2e207b344e335e1cea774c99419fed (patch)
tree821c8966f8b7c55e495ad2095194e122fcc6aa52 /libavcodec/flashsv.c
parent46cb2da1f0acb23d4c54aefafc7d062c2f85c249 (diff)
flashsv: Return more meaningful error values.
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 0fdbfded92..1e8afdb0db 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -133,7 +133,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
av_free(s->tmpblock);
if ((s->tmpblock = av_malloc(3 * s->block_width * s->block_height)) == NULL) {
av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
- return -1;
+ return AVERROR(ENOMEM);
}
}
s->block_size = s->block_width * s->block_height;