Browse Source

Clarify av_check_image_size() log message.

Originally committed as revision 24710 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
899a507fa6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcore/imgutils.c

+ 1
- 1
libavcore/imgutils.c View File

@@ -111,6 +111,6 @@ int av_check_image_size(unsigned int w, unsigned int h, int log_offset, void *lo
if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8) if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)
return 0; return 0;


av_log(&imgutils, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);
av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", w, h);
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }

Loading…
Cancel
Save