[FFmpeg-devel] [PATCH 4/4] avio: detect implicit truncation by assert in avio_w*

Michael Niedermayer michaelni at gmx.at
Tue Oct 16 13:21:08 CEST 2012

On Tue, Oct 16, 2012 at 10:59:21AM +0300, Andrey Utkin wrote:
> 2012/10/15 Michael Niedermayer <michaelni at gmx.at>:
> >  void avio_w8(AVIOContext *s, int b)
> What is the reason for 'b' argument not to be of type uint8_t?

if it was uint8 we couldnt check that the argument is valid and no
truncation happened


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There seems to be only one solution to NIH syndrom, ... a shooting squad
-------------- 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/20121016/705b0aa3/attachment.asc>

More information about the ffmpeg-devel mailing list