[FFmpeg-cvslog] r11445 - in trunk/libpostproc: postprocess.c postprocess_internal.h

benoit subversion
Mon Jan 7 13:44:49 CET 2008


Author: benoit
Date: Mon Jan  7 13:44:49 2008
New Revision: 11445

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


Modified:
   trunk/libpostproc/postprocess.c
   trunk/libpostproc/postprocess_internal.h

Modified: trunk/libpostproc/postprocess.c
==============================================================================
--- trunk/libpostproc/postprocess.c	(original)
+++ trunk/libpostproc/postprocess.c	Mon Jan  7 13:44:49 2008
@@ -982,7 +982,7 @@ static const char * context_to_name(void
     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));

Modified: trunk/libpostproc/postprocess_internal.h
==============================================================================
--- trunk/libpostproc/postprocess_internal.h	(original)
+++ trunk/libpostproc/postprocess_internal.h	Mon Jan  7 13:44:49 2008
@@ -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
 




More information about the ffmpeg-cvslog mailing list