Browse Source

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>
tags/n0.8
Stefano Sabatini 14 years ago
parent
commit
cd1872799d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/flicvideo.c

+ 2
- 2
libavcodec/flicvideo.c View File

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


Loading…
Cancel
Save