Mercurial > libavcodec.hg
changeset 6464:0c3cc1d7a0b3 libavcodec
Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.
author | takis |
---|---|
date | Thu, 06 Mar 2008 17:41:31 +0000 |
parents | 9f397992ddff |
children | 9375720f6ed1 |
files | avcodec.h imgresample.c utils.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Thu Mar 06 14:22:02 2008 +0000 +++ b/avcodec.h Thu Mar 06 17:41:31 2008 +0000 @@ -791,7 +791,7 @@ * information on struct for av_log * - set by avcodec_alloc_context */ - AVClass *av_class; + const AVClass *av_class; /** * the average bitrate * - encoding: Set by user; unused for constant quantizer encoding.
--- a/imgresample.c Thu Mar 06 14:22:02 2008 +0000 +++ b/imgresample.c Thu Mar 06 17:41:31 2008 +0000 @@ -48,7 +48,7 @@ #define LINE_BUF_HEIGHT (NB_TAPS * 4) struct SwsContext { - AVClass *av_class; + const AVClass *av_class; struct ImgReSampleContext *resampling_ctx; enum PixelFormat src_pix_fmt, dst_pix_fmt; };
--- a/utils.c Thu Mar 06 14:22:02 2008 +0000 +++ b/utils.c Thu Mar 06 17:41:31 2008 +0000 @@ -768,7 +768,7 @@ #undef D #undef DEFAULT -static AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options }; +static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options }; void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type){ int flags=0;