[FFmpeg-devel] [PATCH] imgutils: make av_image_get_linesize() return 0 for invalid pixel formats

Michael Niedermayer michaelni at gmx.at
Fri May 13 17:51:53 CEST 2011


On Fri, May 13, 2011 at 05:24:53PM +0200, Stefano Sabatini wrote:
> Make av_image_get_linesize() return 0 in case of invalid/meaningless
> value for the pixel format.
> 
> This makes the behavior of av_image_get_linesize() more consistent
> with that of av_image_fill_linesizes(), which sets all linesizes value
> to 0 in that case.
> 
> Alternatively we may return AVERROR(EINVAL).
> ---
>  libavutil/imgutils.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110513/5878e1db/attachment.asc>


More information about the ffmpeg-devel mailing list