[SCM] libav/experimental: avformat_new_stream: make the AVCodec parameter const
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:03:47 UTC 2014
The following commit has been merged in the experimental branch:
commit 3d90f27ad5843ccd63d34fd6da4d4bff212c1bfe
Author: Roman Savchenko <gmstima at gmail.com>
Date: Tue Jul 8 08:24:09 2014 +0000
avformat_new_stream: make the AVCodec parameter const
Signed-off-by: Anton Khirnov <anton at khirnov.net>
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index ac4cd31..d5736dc 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1332,7 +1332,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);
/**
* Get side information from stream.
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 133822b..7a054af 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2641,7 +2641,7 @@ void avformat_close_input(AVFormatContext **ps)
avio_close(pb);
}
-AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
+AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
{
AVStream *st;
int i;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list