Browse Source

lavf: const correctness for avformat_new_stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 12 years ago
parent
commit
e12cfd044c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavformat/avformat.h
  2. +1
    -1
      libavformat/utils.c

+ 1
- 1
libavformat/avformat.h 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);




+ 1
- 1
libavformat/utils.c 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;


Loading…
Cancel
Save