aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2014-10-30 00:27:04 +0100
committerCarl Eugen Hoyos2014-10-30 00:27:04 +0100
commitf05855414ed4cce97c06ba2a31f4987af47e6d4e (patch)
treee2c55892b99a4a188321b6338602e14147898aa9
parent23ec8db8a07467a1fbef0c79f16b33040ca63c24 (diff)
lavc/utils: Make pix_fmt desc pointer const.
Fixes an "initialization discards qualifiers from pointer target type" warning.
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 4aa0497b07..97e75c8782 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -279,7 +279,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;