Browse code

Make the av_class member of PPContext a poiner to constant AVClass. Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com

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

Diego Pettenò authored on 2008/01/07 21:44:49
Showing 2 changed files
... ...
@@ -982,7 +982,7 @@ static const char * context_to_name(void * ptr) {
982 982
     return "postproc";
983 983
 }
984 984
 
985
-static AVClass av_codec_context_class = { "Postproc", context_to_name, NULL };
985
+static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL };
986 986
 
987 987
 pp_context_t *pp_get_context(int width, int height, int cpuCaps){
988 988
         PPContext *c= av_malloc(sizeof(PPContext));
... ...
@@ -126,7 +126,7 @@ typedef struct PPContext{
126 126
         /**
127 127
          * info on struct for av_log
128 128
          */
129
-        AVClass *av_class;
129
+        const AVClass *av_class;
130 130
 
131 131
         uint8_t *tempBlocks; ///<used for the horizontal code
132 132