diff options
author | Diego Pettenò <flameeyes@gmail.com> | 2008-01-07 12:44:49 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-01-07 12:44:49 +0000 |
commit | 31bfd6f34f5b6b2c5bb9641aef33f0a7f9bebc4a (patch) | |
tree | 2e12643a998a5d66708a126a5259952a6cb6d0f8 | |
parent | 9307db13f6af0bb9fa54b0c4ec080b548c242d27 (diff) | |
download | ffmpeg-31bfd6f34f5b6b2c5bb9641aef33f0a7f9bebc4a.tar.gz |
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
-rw-r--r-- | libpostproc/postprocess.c | 2 | ||||
-rw-r--r-- | libpostproc/postprocess_internal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 9f5ab1fcbb..da21876cc0 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -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)); diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h index e977048d2f..922dbd8117 100644 --- a/libpostproc/postprocess_internal.h +++ b/libpostproc/postprocess_internal.h @@ -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 |