[FFmpeg-devel] Patch to reduce compiler warnings in libavcodec/aac_adtstoasc_bsf.c
Michael Niedermayer
michaelni
Mon Jul 19 02:45:39 CEST 2010
On Sun, Jul 18, 2010 at 04:26:24PM -0700, Paul Sterne wrote:
> What is supposed to be const about buf? Not the pointer buf itself, but the
> contents of what buf is pointed to?
> If buf was to be copied to poutbuff, shouldn't it remain const? If yes,
> then poutbuf also needs to be const, and the routine should never need to
> modify the contents of what is pointed to, whether by buf or by poutbuf.
poutbuf must be av_free()ed in some cases, thus it cannot be const even if it
sometimes is pointing to a const array
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100719/b9ccd63c/attachment.pgp>
More information about the ffmpeg-devel
mailing list