提交 3d90f27a 编写于 作者: R Roman Savchenko 提交者: Anton Khirnov

avformat_new_stream: make the AVCodec parameter const

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 d3cfd7af
......@@ -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.
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册