[FFmpeg-cvslog] libavformat: add const to AVCodec pointers

Mans Rullgard git at videolan.org
Sun Aug 19 15:21:53 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat Aug 18 13:22:38 2012 +0100| [edb5238ccbd3ac3cd8c8fd533c3eab1287ea84b6] | committer: Mans Rullgard

libavformat: add const to AVCodec pointers

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

 libavformat/utils.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8bf688d..81a4b34 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2075,7 +2075,7 @@ static int has_decode_delay_been_guessed(AVStream *st)
 /* returns 1 or 0 if or if not decoded data was returned, or a negative error */
 static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **options)
 {
-    AVCodec *codec;
+    const AVCodec *codec;
     int got_picture = 1, ret = 0;
     AVFrame picture;
     AVPacket pkt = *avpkt;
@@ -2236,7 +2236,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
     int orig_nb_streams = ic->nb_streams;        // new streams might appear, no options for those
 
     for(i=0;i<ic->nb_streams;i++) {
-        AVCodec *codec;
+        const AVCodec *codec;
         AVDictionary *thread_opt = NULL;
         st = ic->streams[i];
 



More information about the ffmpeg-cvslog mailing list