diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-20 18:38:48 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-20 18:38:48 +0100 |
commit | 9461e4bc694b8d95d4224226b9781f8166d969b1 (patch) | |
tree | 0afbbbdc360ff96343978dd63f615b146b7d5c65 /libavformat/format.c | |
parent | 4602456c4f18d111131d4d6a1d0a150474c74d58 (diff) |
lavf: Constify AVOutputFormat pointer.
Diffstat (limited to 'libavformat/format.c')
-rw-r--r-- | libavformat/format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/format.c b/libavformat/format.c index 2c4c895530..102535ffef 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -48,7 +48,7 @@ int av_match_ext(const char *filename, const char *extensions) return 0; } -AVOutputFormat *av_guess_format(const char *short_name, const char *filename, +ff_const59 AVOutputFormat *av_guess_format(const char *short_name, const char *filename, const char *mime_type) { const AVOutputFormat *fmt = NULL; @@ -84,12 +84,12 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, return fmt_found; } -enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name, +enum AVCodecID av_guess_codec(ff_const59 AVOutputFormat *fmt, const char *short_name, const char *filename, const char *mime_type, enum AVMediaType type) { if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) { - AVOutputFormat *fmt2 = av_guess_format(NULL, filename, NULL); + ff_const59 AVOutputFormat *fmt2 = av_guess_format(NULL, filename, NULL); if (fmt2) fmt = fmt2; } |