From: Stefano Sabatini Date: Fri, 22 Apr 2011 22:07:15 +0000 (+0200) Subject: flicvideo: increase error level and fix error message in CHECK_PIXEL_PTR() X-Git-Tag: n0.8~803 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cd1872799d89a87b1d06132118836c82cda2a44f;p=coroid%2Fffmpeg_saccubus.git flicvideo: increase error level and fix error message in CHECK_PIXEL_PTR() Also return AVERROR_INVALIDDATA rather than -1. Signed-off-by: Stefano Sabatini --- diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 913617d12..126c4e1a0 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -61,9 +61,9 @@ #define CHECK_PIXEL_PTR(n) \ if (pixel_ptr + n > pixel_limit) { \ - av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr >= pixel_limit (%d >= %d)\n", \ + av_log (s->avctx, AV_LOG_ERROR, "Invalid pixel_ptr = %d > pixel_limit = %d\n", \ pixel_ptr + n, pixel_limit); \ - return -1; \ + return AVERROR_INVALIDDATA; \ } \ typedef struct FlicDecodeContext {