Re: [FFmpeg-devel] [PATCH] avcodec/snowenc: fix discarded const warning

2015-09-20 Thread Michael Niedermayer
On Sun, Sep 20, 2015 at 03:19:40PM -0400, Ganesh Ajjanagadde wrote: > On Sun, Sep 20, 2015 at 2:14 PM, Nicolas George wrote: > > Le jour du Labour, an CCXXIII, Ganesh Ajjanagadde a écrit : > >> This fixes a -Wdiscarded-qualifiers in e.g > >> http://fate.ffmpeg.org/log.cgi?time=20150919093218&log=c

Re: [FFmpeg-devel] [PATCH] avcodec/snowenc: fix discarded const warning

2015-09-20 Thread Ganesh Ajjanagadde
On Sun, Sep 20, 2015 at 2:14 PM, Nicolas George wrote: > Le jour du Labour, an CCXXIII, Ganesh Ajjanagadde a écrit : >> This fixes a -Wdiscarded-qualifiers in e.g >> http://fate.ffmpeg.org/log.cgi?time=20150919093218&log=compile&slot=x86_64-archlinux-gcc-ddebug. >> It is quite clear from the code

Re: [FFmpeg-devel] [PATCH] avcodec/snowenc: fix discarded const warning

2015-09-20 Thread Nicolas George
Le jour du Labour, an CCXXIII, Ganesh Ajjanagadde a écrit : > This fixes a -Wdiscarded-qualifiers in e.g > http://fate.ffmpeg.org/log.cgi?time=20150919093218&log=compile&slot=x86_64-archlinux-gcc-ddebug. > It is quite clear from the code that the discard of constness was deliberate, > so the cast s

[FFmpeg-devel] [PATCH] avcodec/snowenc: fix discarded const warning

2015-09-19 Thread Ganesh Ajjanagadde
This fixes a -Wdiscarded-qualifiers in e.g http://fate.ffmpeg.org/log.cgi?time=20150919093218&log=compile&slot=x86_64-archlinux-gcc-ddebug. It is quite clear from the code that the discard of constness was deliberate, so the cast should be fine. Signed-off-by: Ganesh Ajjanagadde --- libavcodec/s