[FFmpeg-cvslog] r18106 - in trunk: libavcodec/avcodec.h libavcodec/imgconvert.c tests/libav.regression.ref

Reimar Döffinger Reimar.Doeffinger
Sat Mar 21 11:33:07 CET 2009


On Sat, Mar 21, 2009 at 11:25:20AM +0100, reimar wrote:
> - * @return Image data size in bytes
> + * @return Image data size in bytes or -1 on error (e.g. too large dimensions).

This behaviour is not new, it just is newly documented now.
A note to the authors maintainers of these files:
libdiracdec.c libdiracenc.c libschroedingerenc.c pnmenc.c pnm_parser.c rawdec.c targaenc.c

Your code uses avpicture_get_size without checking its return value.
Please at least make sure this can not cause any _serious_ issues, e.g.
because the code calls it with arbitrary width/height and causes a crash
later on because avpicture_get_size returned -1.




More information about the ffmpeg-cvslog mailing list