lavf: const correctness for avformat_new_stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-10-24 14:29:05 +00:00
parent e3ba817b95
commit e12cfd044c
2 changed files with 2 additions and 2 deletions

View File

@ -1311,7 +1311,7 @@ const AVClass *avformat_get_class(void);
* *
* @return newly created stream or NULL on error. * @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); AVProgram *av_new_program(AVFormatContext *s, int id);

View File

@ -3101,7 +3101,7 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
} }
#endif #endif
AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c) AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
{ {
AVStream *st; AVStream *st;
int i; int i;