Commit 0a7f3af2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '53abe324'

* commit '53abe324':
  avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as const

Conflicts:
	libavcodec/avcodec.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d1ce43a3 53abe324
...@@ -4277,7 +4277,7 @@ typedef struct AVCodecParser { ...@@ -4277,7 +4277,7 @@ typedef struct AVCodecParser {
struct AVCodecParser *next; struct AVCodecParser *next;
} AVCodecParser; } AVCodecParser;
AVCodecParser *av_parser_next(AVCodecParser *c); AVCodecParser *av_parser_next(const AVCodecParser *c);
void av_register_codec_parser(AVCodecParser *parser); void av_register_codec_parser(AVCodecParser *parser);
AVCodecParserContext *av_parser_init(int codec_id); AVCodecParserContext *av_parser_init(int codec_id);
...@@ -5001,7 +5001,7 @@ void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); ...@@ -5001,7 +5001,7 @@ void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
* This function can be used to iterate over all registered bitstream * This function can be used to iterate over all registered bitstream
* filters. * filters.
*/ */
AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f); AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
/* memory */ /* memory */
...@@ -5069,7 +5069,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel); ...@@ -5069,7 +5069,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel);
* if hwaccel is non-NULL, returns the next registered hardware accelerator * if hwaccel is non-NULL, returns the next registered hardware accelerator
* after hwaccel, or NULL if hwaccel is the last one. * after hwaccel, or NULL if hwaccel is the last one.
*/ */
AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel); AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel);
/** /**
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
static AVBitStreamFilter *first_bitstream_filter = NULL; static AVBitStreamFilter *first_bitstream_filter = NULL;
AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f) AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f)
{ {
if (f) if (f)
return f->next; return f->next;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
static AVCodecParser *av_first_parser = NULL; static AVCodecParser *av_first_parser = NULL;
AVCodecParser *av_parser_next(AVCodecParser *p) AVCodecParser *av_parser_next(const AVCodecParser *p)
{ {
if (p) if (p)
return p->next; return p->next;
......
...@@ -3401,7 +3401,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel) ...@@ -3401,7 +3401,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel)
last_hwaccel = &hwaccel->next; last_hwaccel = &hwaccel->next;
} }
AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel) AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel)
{ {
return hwaccel ? hwaccel->next : first_hwaccel; return hwaccel ? hwaccel->next : first_hwaccel;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment