[FFmpeg-devel] [PATCH] fix warning in libavutil/fifo.c

Michael Niedermayer michaelni
Mon Jan 12 21:13:58 CET 2009


On Sun, Jan 11, 2009 at 10:17:18PM +0100, Diego Biurrun wrote:
> Here is a patch to fix
> 
> fifo.c:79: warning: cast discards qualifiers from pointer target type
> 
> Diego

> Index: libavutil/fifo.c
> ===================================================================
> --- libavutil/fifo.c	(revision 16549)
> +++ libavutil/fifo.c	(working copy)
> @@ -74,7 +74,7 @@
>      return 0;
>  }
>  
> -void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size)
> +void av_fifo_write(AVFifoBuffer *f, uint8_t *buf, int size)

I belive av_fifo_write does not change the content of buf thus const
is correct

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

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- 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/20090112/e4724f61/attachment.pgp>



More information about the ffmpeg-devel mailing list