Commit 6a3520bf authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf: Constify AVProbeData* in av_probe_input_format().

parent cc493410
...@@ -2240,7 +2240,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name); ...@@ -2240,7 +2240,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name);
* @param is_opened Whether the file is already opened; determines whether * @param is_opened Whether the file is already opened; determines whether
* demuxers with or without AVFMT_NOFILE are probed. * demuxers with or without AVFMT_NOFILE are probed.
*/ */
ff_const59 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened); ff_const59 AVInputFormat *av_probe_input_format(ff_const59 AVProbeData *pd, int is_opened);
/** /**
* Guess the file format. * Guess the file format.
...@@ -2254,7 +2254,7 @@ ff_const59 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened); ...@@ -2254,7 +2254,7 @@ ff_const59 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
* If the score is <= AVPROBE_SCORE_MAX / 4 it is recommended * If the score is <= AVPROBE_SCORE_MAX / 4 it is recommended
* to retry with a larger probe buffer. * to retry with a larger probe buffer.
*/ */
ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max); ff_const59 AVInputFormat *av_probe_input_format2(ff_const59 AVProbeData *pd, int is_opened, int *score_max);
/** /**
* Guess the file format. * Guess the file format.
...@@ -2263,7 +2263,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, ...@@ -2263,7 +2263,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
* demuxers with or without AVFMT_NOFILE are probed. * demuxers with or without AVFMT_NOFILE are probed.
* @param score_ret The score of the best detection. * @param score_ret The score of the best detection.
*/ */
ff_const59 AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, int *score_ret); ff_const59 AVInputFormat *av_probe_input_format3(ff_const59 AVProbeData *pd, int is_opened, int *score_ret);
/** /**
* Probe a bytestream to determine the input format. Each time a probe returns * Probe a bytestream to determine the input format. Each time a probe returns
......
...@@ -125,7 +125,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name) ...@@ -125,7 +125,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name)
return NULL; return NULL;
} }
ff_const59 AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, ff_const59 AVInputFormat *av_probe_input_format3(ff_const59 AVProbeData *pd, int is_opened,
int *score_ret) int *score_ret)
{ {
AVProbeData lpd = *pd; AVProbeData lpd = *pd;
...@@ -202,7 +202,7 @@ ff_const59 AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, ...@@ -202,7 +202,7 @@ ff_const59 AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
return fmt; return fmt;
} }
ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max) ff_const59 AVInputFormat *av_probe_input_format2(ff_const59 AVProbeData *pd, int is_opened, int *score_max)
{ {
int score_ret; int score_ret;
ff_const59 AVInputFormat *fmt = av_probe_input_format3(pd, is_opened, &score_ret); ff_const59 AVInputFormat *fmt = av_probe_input_format3(pd, is_opened, &score_ret);
...@@ -213,7 +213,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, ...@@ -213,7 +213,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
return NULL; return NULL;
} }
ff_const59 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened) ff_const59 AVInputFormat *av_probe_input_format(ff_const59 AVProbeData *pd, int is_opened)
{ {
int score = 0; int score = 0;
return av_probe_input_format2(pd, is_opened, &score); return av_probe_input_format2(pd, is_opened, &score);
......
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