[FFmpeg-devel] [PATCH] Make av_class pointer to const

Stefano Sabatini stefano.sabatini-lala
Fri Mar 7 01:46:35 CET 2008


On date Thursday 2008-03-06 18:44:03 +0100, Panagiotis Issaris encoded:
> Michael Niedermayer schreef:
> > On Thu, Mar 06, 2008 at 05:09:56PM +0100, Panagiotis Issaris wrote:
> >> Hi,
> >>
> >> Attached patches make av_class a pointer to a const AVClass.
> >>
> >> The libavcodec/imgresample.c part of the patch addresses one warning.
> > 
> > ok
> 
> FFmpeg part applied. Couldn't apply the libswscale part as I don't have 
> SVN access to MPlayer anymore.
> 
> With friendly regards,
> Takis

The libavfilter hunk (already applied) seems to cause this issue when
compiling libavfilter:

gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_ISOC9X_SOURCE -I"/home/stefano/src/ffmpeg"
-I"/home/stefano/src/ffmpeg" -I"/home/stefano/src/ffmpeg"/libavcodec
-I"/home/stefano/src/ffmpeg"/libavdevice
-I"/home/stefano/src/ffmpeg"/libavfilter
-I"/home/stefano/src/ffmpeg"/libavformat
-I"/home/stefano/src/ffmpeg"/libavutil
-I"/home/stefano/src/ffmpeg"/libpostproc
-I"/home/stefano/src/ffmpeg"/libswscale -g
-Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -fno-math-errno -c -o
avfilter.o avfilter.c

avfilter.c: In function ?avfilter_open?:
avfilter.c:336: error: assignment of read-only location
make: *** [avfilter.o] Error 1

In avfilter_open:
ret->av_class->item_name = filter_name;

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)




More information about the ffmpeg-devel mailing list