# HG changeset patch # User stefano # Date 1280479335 0 # Node ID 356600e12af7115b255baa6e7a61521ee377fccf # Parent 4cecefd36670866052c5e3ac3a8e97b3e83b31de Make av_fill_image_linesizes() return a meaningful error core rather than -1. diff -r 4cecefd36670 -r 356600e12af7 imgutils.c --- a/imgutils.c Fri Jul 30 08:42:12 2010 +0000 +++ b/imgutils.c Fri Jul 30 08:42:15 2010 +0000 @@ -34,7 +34,7 @@ memset(linesize, 0, 4*sizeof(linesize[0])); if (desc->flags & PIX_FMT_HWACCEL) - return -1; + return AVERROR(EINVAL); if (desc->flags & PIX_FMT_BITSTREAM) { linesize[0] = (width * (desc->comp[0].step_minus1+1) + 7) >> 3;