Make the av_class member of PPContext a poiner to constant AVClass.
authorDiego Pettenò <flameeyes@gmail.com>
Mon, 7 Jan 2008 12:44:49 +0000 (12:44 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Mon, 7 Jan 2008 12:44:49 +0000 (12:44 +0000)
Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com

Originally committed as revision 11445 to svn://svn.ffmpeg.org/ffmpeg/trunk

libpostproc/postprocess.c
libpostproc/postprocess_internal.h

index 9f5ab1f..da21876 100644 (file)
@@ -982,7 +982,7 @@ static const char * context_to_name(void * ptr) {
     return "postproc";
 }
 
-static AVClass av_codec_context_class = { "Postproc", context_to_name, NULL };
+static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL };
 
 pp_context_t *pp_get_context(int width, int height, int cpuCaps){
         PPContext *c= av_malloc(sizeof(PPContext));
index e977048..922dbd8 100644 (file)
@@ -126,7 +126,7 @@ typedef struct PPContext{
         /**
          * info on struct for av_log
          */
-        AVClass *av_class;
+        const AVClass *av_class;
 
         uint8_t *tempBlocks; ///<used for the horizontal code