[SCM] libav/experimental: Make av_fill_image_linesizes() return a meaningful error core rather than -1.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:13:02 UTC 2013
The following commit has been merged in the experimental branch:
commit 46b1d17a6f41aaee2fbe4769ea95906935bf4f5f
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Fri Jul 30 08:42:15 2010 +0000
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
diff --git a/libavcore/imgutils.c b/libavcore/imgutils.c
index 28e063e..fb0b537 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list