avformat_new_stream: make the AVCodec parameter const

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/76/merge
Roman Savchenko 11 years ago committed by Anton Khirnov
parent d3cfd7aff8
commit 3d90f27ad5
  1. 2
      libavformat/avformat.h
  2. 2
      libavformat/utils.c

@ -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;

Loading…
Cancel
Save