diff options
author | Martin Storsjö <martin@martin.st> | 2011-04-13 21:48:00 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-04-13 22:14:33 +0300 |
commit | 567ad0e31d94512410fd02ead1a1d6f72d369456 (patch) | |
tree | 02aca63972850ea47b2c16941911e41154ece1cf /libavcodec | |
parent | 0e1a5434e2d30d0f57770110c1e358c8eccf9f82 (diff) | |
download | ffmpeg-567ad0e31d94512410fd02ead1a1d6f72d369456.tar.gz |
libavcodec: Mark AVCodec->priv_class const
This avoids warnings of this kind, everywhere priv_class
is initialized:
warning: initialization discards qualifiers from pointer target type
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7eb8b52c0b..109d2a4923 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2944,7 +2944,7 @@ typedef struct AVCodec { const enum AVSampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1 const int64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0 uint8_t max_lowres; ///< maximum value for lowres supported by the decoder - AVClass *priv_class; ///< AVClass for the private context + const AVClass *priv_class; ///< AVClass for the private context const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN} /** |