[FFmpeg-cvslog] avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as const
Diego Biurrun
git at videolan.org
Sun Jul 27 02:09:09 CEST 2014
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Jul 26 02:46:40 2014 -0700| [53abe32409f13687c864b3cda077a1aa906a2459] | committer: Diego Biurrun
avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as const
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=53abe32409f13687c864b3cda077a1aa906a2459
---
libavcodec/avcodec.h | 6 +++---
libavcodec/bitstream_filter.c | 2 +-
libavcodec/parser.c | 2 +-
libavcodec/utils.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index cc74aee..8f93911 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3800,7 +3800,7 @@ typedef struct AVCodecParser {
struct AVCodecParser *next;
} AVCodecParser;
-AVCodecParser *av_parser_next(AVCodecParser *c);
+AVCodecParser *av_parser_next(const AVCodecParser *c);
void av_register_codec_parser(AVCodecParser *parser);
AVCodecParserContext *av_parser_init(int codec_id);
@@ -4281,7 +4281,7 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
const uint8_t *buf, int buf_size, int keyframe);
void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
-AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f);
+AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
/* memory */
@@ -4343,7 +4343,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel);
* if hwaccel is non-NULL, returns the next registered hardware accelerator
* after hwaccel, or NULL if hwaccel is the last one.
*/
-AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel);
+AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel);
/**
diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c
index 8960b19..f524d3e 100644
--- a/libavcodec/bitstream_filter.c
+++ b/libavcodec/bitstream_filter.c
@@ -25,7 +25,7 @@
static AVBitStreamFilter *first_bitstream_filter = NULL;
-AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f)
+AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f)
{
if (f)
return f->next;
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 080bbc3..6d20516 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -29,7 +29,7 @@
static AVCodecParser *av_first_parser = NULL;
-AVCodecParser *av_parser_next(AVCodecParser *p)
+AVCodecParser *av_parser_next(const AVCodecParser *p)
{
if (p)
return p->next;
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 16c30c3..dc7ffc4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2279,7 +2279,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel)
hwaccel->next = NULL;
}
-AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
+AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel)
{
return hwaccel ? hwaccel->next : first_hwaccel;
}
More information about the ffmpeg-cvslog
mailing list