diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-30 12:42:15 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-30 12:42:15 +0400 |
commit | 46b1d17a6f41aaee2fbe4769ea95906935bf4f5f (patch) | |
tree | bc35e195a58f9ead3b068554f1f1706502fb59b8 /libavcore | |
parent | 7860b436514cf04eccf7f85e11a11323b17d88e7 (diff) |
Make av_fill_image_linesizes() return a meaningful error core rather
than -1.
Originally committed as revision 24589 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcore')
-rw-r--r-- | libavcore/imgutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcore/imgutils.c b/libavcore/imgutils.c index 28e063eb86..fb0b537c1d 100644 --- a/libavcore/imgutils.c +++ b/libavcore/imgutils.c @@ -34,7 +34,7 @@ int av_fill_image_linesizes(int linesize[4], enum PixelFormat pix_fmt, int width 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; |