diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-18 01:02:34 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-18 01:02:34 +0000 |
commit | 492d0e4c12325eeec0423c44b007eebbffef7d57 (patch) | |
tree | 0757335736335be7fdc569efacd18b2d0b11f13f /libavcodec/flicvideo.c | |
parent | 89cf4098aafc000ff758f278b9dc17b6373101d2 (diff) | |
download | ffmpeg-492d0e4c12325eeec0423c44b007eebbffef7d57.tar.gz |
display line number when printing error
Originally committed as revision 8015 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flicvideo.c')
-rw-r--r-- | libavcodec/flicvideo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 78506eee87..43a6f26dd6 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -355,8 +355,8 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx, pixels[pixel_ptr++] = palette_idx1; pixel_countdown--; if (pixel_countdown < 0) - av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d)\n", - pixel_countdown); + av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d) at line %d\n", + pixel_countdown, lines); } } else { /* copy bytes if byte_run < 0 */ byte_run = -byte_run; @@ -366,8 +366,8 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx, pixels[pixel_ptr++] = palette_idx1; pixel_countdown--; if (pixel_countdown < 0) - av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d)\n", - pixel_countdown); + av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d) at line %d\n", + pixel_countdown, lines); } } } @@ -563,8 +563,8 @@ static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, pixels[pixel_ptr++] = palette_idx1; pixel_countdown--; if (pixel_countdown < 0) - av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d)\n", - pixel_countdown); + av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d) (linea%d)\n", + pixel_countdown, lines); } } else { /* copy bytes if byte_run < 0 */ byte_run = -byte_run; @@ -574,8 +574,8 @@ static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, pixels[pixel_ptr++] = palette_idx1; pixel_countdown--; if (pixel_countdown < 0) - av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d)\n", - pixel_countdown); + av_log(avctx, AV_LOG_ERROR, "pixel_countdown < 0 (%d) at line %d\n", + pixel_countdown, lines); } } } |