diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2008-03-06 17:41:31 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2008-03-06 17:41:31 +0000 |
commit | d42a814ef18f6951d30b0005122c40f63cc74f55 (patch) | |
tree | 98503bd965e8b5f10fba0437d4eb8874b058680c /libavcodec | |
parent | ebf71dbda52801f40d4e9313058bef6b792cf6cd (diff) | |
download | ffmpeg-d42a814ef18f6951d30b0005122c40f63cc74f55.tar.gz |
Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.
Originally committed as revision 12352 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 2 | ||||
-rw-r--r-- | libavcodec/imgresample.c | 2 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7b4e1b4216..cbc6f70a79 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -791,7 +791,7 @@ typedef struct AVCodecContext { * 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. diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c index b5c57ffd94..5b720b2326 100644 --- a/libavcodec/imgresample.c +++ b/libavcodec/imgresample.c @@ -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; }; diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 4aaedb11c5..6418776496 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -768,7 +768,7 @@ static const AVOption options[]={ #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; |