[FFmpeg-cvslog] lavc/utils: Make pix_fmt desc pointer const.

Carl Eugen Hoyos git at videolan.org
Fri Nov 28 20:02:33 CET 2014


ffmpeg | branch: release/2.1 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Oct 30 00:27:04 2014 +0100| [1987afe5a0c51c686f1e8a54d5bfcb218b7c7ec6] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1987afe5a0c51c686f1e8a54d5bfcb218b7c7ec6
---

 libavcodec/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 3b11990..7391a69 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;



More information about the ffmpeg-cvslog mailing list