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-02 10:36:08 +0100
commit2389309d4836b7f0ba7f2e50fda1943bfa945e53 (patch)
tree98bfb963e8dd7c991b76d7f480f88e95653c5939
parent0140f11c3bad6f9532e8f0f3c858d08a948bb6b6 (diff)
downloadffmpeg-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.c2
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;