Mercurial > libavcore.hg
changeset 10:356600e12af7 libavcore
Make av_fill_image_linesizes() return a meaningful error core rather
than -1.
author | stefano |
---|---|
date | Fri, 30 Jul 2010 08:42:15 +0000 |
parents | 4cecefd36670 |
children | dabaa2056109 |
files | imgutils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;