# HG changeset patch # User benoit # Date 1199709889 0 # Node ID fb2657d1e70d4898f5728b69f6bf3eb34a567e65 # Parent 7737e39e74f31481e4be1000549d9314bde6a134 Make the av_class member of PPContext a poiner to constant AVClass. Patch by Diego 'Flameeyes' Petten flameeyes gmail ! com diff -r 7737e39e74f3 -r fb2657d1e70d postprocess.c --- a/postprocess.c Fri Jan 04 07:47:32 2008 +0000 +++ b/postprocess.c Mon Jan 07 12:44:49 2008 +0000 @@ -982,7 +982,7 @@ 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 -r 7737e39e74f3 -r fb2657d1e70d postprocess_internal.h --- a/postprocess_internal.h Fri Jan 04 07:47:32 2008 +0000 +++ b/postprocess_internal.h Mon Jan 07 12:44:49 2008 +0000 @@ -126,7 +126,7 @@ /** * info on struct for av_log */ - AVClass *av_class; + const AVClass *av_class; uint8_t *tempBlocks; ///