diff options
author | Clément Bœsch <clement@stupeflix.com> | 2016-06-27 11:25:23 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2016-08-17 16:17:42 +0200 |
commit | b2016189db99eb1c37314cedf5c676491548bf3a (patch) | |
tree | a79dca6e286f98bce26c6ec31eea931016929a7d /libavformat | |
parent | 2477775bf837798696c283a854d17a1d2c60b923 (diff) | |
download | ffmpeg-b2016189db99eb1c37314cedf5c676491548bf3a.tar.gz |
lavf/utils: add some const to pointers parameters in a few functions
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/internal.h | 2 | ||||
-rw-r--r-- | libavformat/utils.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 0119749ec2..f9278c5b9a 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -561,7 +561,7 @@ enum AVWriteUncodedFrameFlags { /** * Copies the whilelists from one context to the other */ -int ff_copy_whiteblacklists(AVFormatContext *dst, AVFormatContext *src); +int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src); int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options); diff --git a/libavformat/utils.c b/libavformat/utils.c index 6b7609ecd2..8156a80c97 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -90,7 +90,7 @@ static int is_relative(int64_t ts) { * @param timestamp the time stamp to wrap * @return resulting time stamp */ -static int64_t wrap_timestamp(AVStream *st, int64_t timestamp) +static int64_t wrap_timestamp(const AVStream *st, int64_t timestamp) { if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) { @@ -142,7 +142,7 @@ void av_format_inject_global_side_data(AVFormatContext *s) } } -int ff_copy_whiteblacklists(AVFormatContext *dst, AVFormatContext *src) +int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src) { av_assert0(!dst->codec_whitelist && !dst->format_whitelist && @@ -162,7 +162,7 @@ int ff_copy_whiteblacklists(AVFormatContext *dst, AVFormatContext *src) return 0; } -static const AVCodec *find_decoder(AVFormatContext *s, AVStream *st, enum AVCodecID codec_id) +static const AVCodec *find_decoder(AVFormatContext *s, const AVStream *st, enum AVCodecID codec_id) { #if FF_API_LAVF_AVCTX FF_DISABLE_DEPRECATION_WARNINGS |