From 3dba9e19c8836cbb156953df20acdc3f52d0d568 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubitux@gmail.com>
Date: Tue, 21 Aug 2012 13:47:43 +0200
Subject: [PATCH] lavf: add const qualifier to AVCodecDescriptor pointer in
 is_intra_only().
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix "assignment discards ‘const’ qualifier from pointer target type" warnings.
---
 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 38d2e08b4c5..eec302b263c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -877,7 +877,7 @@ static void compute_frame_duration(int *pnum, int *pden, AVStream *st,
 }
 
 static int is_intra_only(AVCodecContext *enc){
-    AVCodecDescriptor *desc;
+    const AVCodecDescriptor *desc;
 
     if(enc->codec_type != AVMEDIA_TYPE_VIDEO)
         return 1;
-- 
GitLab