From 31bfd6f34f5b6b2c5bb9641aef33f0a7f9bebc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Petten=C3=B2?= Date: Mon, 7 Jan 2008 12:44:49 +0000 Subject: [PATCH] =?UTF-8?q?Make=20the=20av=5Fclass=20member=20of=20PPConte?= =?UTF-8?q?xt=20a=20poiner=20to=20constant=20AVClass.=20Patch=20by=20Diego?= =?UTF-8?q?=20'Flameeyes'=20Petten=C3=B2=20flameeyes=20=C2=A4=20gmail=20!?= =?UTF-8?q?=20com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 11445 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libpostproc/postprocess.c | 2 +- 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; ///