[FFmpeg-cvslog] lavf: const correctness for avformat_new_stream

Paul B Mahol git at videolan.org
Wed Oct 24 19:57:29 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 24 14:29:05 2012 +0000| [e12cfd044c2bae4a099a3b9384b148424858d72b] | committer: Paul B Mahol

lavf: const correctness for avformat_new_stream

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavformat/avformat.h |    2 +-
 libavformat/utils.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index f993dbc..3d99518 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1311,7 +1311,7 @@ const AVClass *avformat_get_class(void);
  *
  * @return newly created stream or NULL on error.
  */
-AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c);
+AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c);
 
 AVProgram *av_new_program(AVFormatContext *s, int id);
 
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cd4161f..fb5742b 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3101,7 +3101,7 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
 }
 #endif
 
-AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
+AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
 {
     AVStream *st;
     int i;



More information about the ffmpeg-cvslog mailing list