diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-30 00:27:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-02 10:36:08 +0100 |
commit | 2389309d4836b7f0ba7f2e50fda1943bfa945e53 (patch) | |
tree | 98bfb963e8dd7c991b76d7f480f88e95653c5939 | |
parent | 0140f11c3bad6f9532e8f0f3c858d08a948bb6b6 (diff) | |
download | ffmpeg-2389309d4836b7f0ba7f2e50fda1943bfa945e53.tar.gz |
lavc/utils: Make pix_fmt desc pointer const.
Fixes an "initialization discards qualifiers from pointer target type" warning.
(cherry picked from commit f05855414ed4cce97c06ba2a31f4987af47e6d4e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8e421e7073..5326f19f04 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -196,7 +196,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int i; int w_align = 1; int h_align = 1; - AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt); + AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt); if (desc) { w_align = 1 << desc->log2_chroma_w; |