diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-23 00:07:15 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-23 12:13:11 +0200 |
commit | cd1872799d89a87b1d06132118836c82cda2a44f (patch) | |
tree | a5ea9e4ffb45695891acb8b24a11ecadeba08e30 /libavcodec/flicvideo.c | |
parent | 3d462373f8e8fa58b697a9b2d93a5edf70841937 (diff) | |
download | ffmpeg-cd1872799d89a87b1d06132118836c82cda2a44f.tar.gz |
flicvideo: increase error level and fix error message in CHECK_PIXEL_PTR()
Also return AVERROR_INVALIDDATA rather than -1.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'libavcodec/flicvideo.c')
-rw-r--r-- | libavcodec/flicvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 913617d120..126c4e1a04 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 { |