]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Make the av_class member of PPContext a poiner to constant AVClass.
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 7 Jan 2008 12:44:49 +0000 (12:44 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 7 Jan 2008 12:44:49 +0000 (12:44 +0000)
Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11445 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libpostproc/postprocess.c
libpostproc/postprocess_internal.h

index 9f5ab1fcbb7e6f1a9e3ebddf63fe993dd765919b..da21876cc063d0b7709ca2a20bf99b855f1be382 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 e977048d2f3d90819f711fd63eadd6ba128a81c0..922dbd8117d5f35e30f5d82109ae545aee1ad35e 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