[FFmpeg-cvslog] r24589 - trunk/libavcore/imgutils.c

stefano subversion
Fri Jul 30 10:42:16 CEST 2010


Author: stefano
Date: Fri Jul 30 10:42:15 2010
New Revision: 24589

Log:
Make av_fill_image_linesizes() return a meaningful error core rather
than -1.

Modified:
   trunk/libavcore/imgutils.c

Modified: trunk/libavcore/imgutils.c
==============================================================================
--- trunk/libavcore/imgutils.c	Fri Jul 30 10:42:12 2010	(r24588)
+++ trunk/libavcore/imgutils.c	Fri Jul 30 10:42:15 2010	(r24589)
@@ -34,7 +34,7 @@ int av_fill_image_linesizes(int linesize
     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;



More information about the ffmpeg-cvslog mailing list