diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-30 00:27:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-08 19:08:30 +0100 |
commit | cd01611d7b7aa63bfce6dcb4008ac7686bc13418 (patch) | |
tree | e1b10e5f36d7430db989c65aa9f12696c7232f73 | |
parent | 8b8d794800db9b0980760eb8dfb410dfbba54c2d (diff) | |
download | ffmpeg-cd01611d7b7aa63bfce6dcb4008ac7686bc13418.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 8d24f0bed9..4969baabc4 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -281,7 +281,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; |