Browse Source

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
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
46b1d17a6f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcore/imgutils.c

+ 1
- 1
libavcore/imgutils.c View File

@@ -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;


Loading…
Cancel
Save