mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
lavf: Constify AVInputFormat pointer.
This commit is contained in:
@@ -357,7 +357,7 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st,
|
||||
{ 0 }
|
||||
};
|
||||
int score;
|
||||
AVInputFormat *fmt = av_probe_input_format3(pd, 1, &score);
|
||||
const AVInputFormat *fmt = av_probe_input_format3(pd, 1, &score);
|
||||
|
||||
if (fmt) {
|
||||
int i;
|
||||
@@ -535,7 +535,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
|
||||
int avformat_open_input(AVFormatContext **ps, const char *filename,
|
||||
AVInputFormat *fmt, AVDictionary **options)
|
||||
ff_const59 AVInputFormat *fmt, AVDictionary **options)
|
||||
{
|
||||
AVFormatContext *s = *ps;
|
||||
int i, ret = 0;
|
||||
@@ -2163,7 +2163,7 @@ static int64_t ff_read_timestamp(AVFormatContext *s, int stream_index, int64_t *
|
||||
int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
|
||||
int64_t target_ts, int flags)
|
||||
{
|
||||
AVInputFormat *avif = s->iformat;
|
||||
const AVInputFormat *avif = s->iformat;
|
||||
int64_t av_uninit(pos_min), av_uninit(pos_max), pos, pos_limit;
|
||||
int64_t ts_min, ts_max, ts;
|
||||
int index;
|
||||
|
||||
Reference in New Issue
Block a user