aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-30 00:27:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-28 18:53:11 +0100
commit1987afe5a0c51c686f1e8a54d5bfcb218b7c7ec6 (patch)
treea520a6e71563dd3ababfd4c8962f25a4a1a7678b
parent4352a971afeb88c13f786b2d409480c49e45c7ed (diff)
downloadffmpeg-1987afe5a0c51c686f1e8a54d5bfcb218b7c7ec6.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 3b1199064c..7391a69611 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -251,7 +251,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;