1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 16:15:48 +01:00

FFmpeg: add missing "const" to 3 prototypes

This commit is contained in:
Max Kellermann
2016-04-28 22:53:22 +02:00
committed by Paul Licameli
parent 4b5542afdf
commit ef23de6a60

View File

@@ -669,12 +669,21 @@ extern "C" {
(AVFormatContext *s, AVDictionary **options),
(s, options)
);
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(55, 33, 101)
FFMPEG_FUNCTION_WITH_RETURN(
AVOutputFormat*,
av_oformat_next,
(const AVOutputFormat *f),
(f)
);
#else
FFMPEG_FUNCTION_WITH_RETURN(
AVOutputFormat*,
av_oformat_next,
(AVOutputFormat *f),
(f)
);
#endif
FFMPEG_FUNCTION_WITH_RETURN(
AVCodec*,
av_codec_next,
@@ -741,12 +750,21 @@ extern "C" {
(AVFifoBuffer *f),
(f)
);
#if LIBAVUTIL_VERSION_MAJOR >= 53
FFMPEG_FUNCTION_WITH_RETURN(
int,
av_fifo_size,
(const AVFifoBuffer *f),
(f)
);
#else
FFMPEG_FUNCTION_WITH_RETURN(
int,
av_fifo_size,
(AVFifoBuffer *f),
(f)
);
#endif
FFMPEG_FUNCTION_WITH_RETURN(
void*,
av_malloc,
@@ -794,12 +812,21 @@ extern "C" {
(AVDictionary **m),
(m)
);
#if LIBAVUTIL_VERSION_MAJOR >= 53
FFMPEG_FUNCTION_WITH_RETURN(
AVDictionaryEntry *,
av_dict_get,
(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags),
(m, key, prev, flags)
);
#else
FFMPEG_FUNCTION_WITH_RETURN(
AVDictionaryEntry *,
av_dict_get,
(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags),
(m, key, prev, flags)
);
#endif
FFMPEG_FUNCTION_WITH_RETURN(
int,
av_dict_set,