diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-28 19:58:41 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-02 02:51:55 +0100 |
commit | b295aafb08209a76b0052b9163a4f2e0c533ba1e (patch) | |
tree | f5b15acd0417e8e8d72c30007beb847e002c9d37 /libswresample | |
parent | 58e3ef7f54685f967acd06a71de624882258902d (diff) | |
download | ffmpeg-b295aafb08209a76b0052b9163a4f2e0c533ba1e.tar.gz |
swresample/swresample: Constify swr_convert()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/swresample.c | 7 | ||||
-rw-r--r-- | libswresample/swresample.h | 4 | ||||
-rw-r--r-- | libswresample/version.h | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 1cf83a803f..6948892d76 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -563,7 +563,8 @@ static void copy(AudioData *out, AudioData *in, memcpy(out->ch[0], in->ch[0], count*out->ch_count*out->bps); } -static void fill_audiodata(AudioData *out, uint8_t *in_arg [SWR_CH_MAX]){ +static void fill_audiodata(AudioData *out, uint8_t *const in_arg [SWR_CH_MAX]) +{ int i; if(!in_arg){ memset(out->ch, 0, sizeof(out->ch)); @@ -835,8 +836,8 @@ int swr_is_initialized(struct SwrContext *s) { } int attribute_align_arg swr_convert(struct SwrContext *s, - uint8_t **out_arg, int out_count, - const uint8_t **in_arg, int in_count) + uint8_t * const *out_arg, int out_count, + const uint8_t * const *in_arg, int in_count) { AudioData * in= &s->in; AudioData *out= &s->out; diff --git a/libswresample/swresample.h b/libswresample/swresample.h index d4dcaebdcf..78495a0d4c 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -340,8 +340,8 @@ void swr_close(struct SwrContext *s); * * @return number of samples output per channel, negative value on error */ -int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, - const uint8_t **in , int in_count); +int swr_convert(struct SwrContext *s, uint8_t * const *out, int out_count, + const uint8_t * const *in , int in_count); /** * Convert the next timestamp from input to output diff --git a/libswresample/version.h b/libswresample/version.h index 46a4e2fc62..dfaf6f8c42 100644 --- a/libswresample/version.h +++ b/libswresample/version.h @@ -30,7 +30,7 @@ #include "version_major.h" -#define LIBSWRESAMPLE_VERSION_MINOR 13 +#define LIBSWRESAMPLE_VERSION_MINOR 14 #define LIBSWRESAMPLE_VERSION_MICRO 100 #define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \ |