mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avutil/samplefmt: Constify some pointees
This is the samplefmt analog of the imgutils changes from the preceding commit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
41285890e0
commit
9bf31f6096
@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2023-09-07 - xxxxxxxxxx - lavu 58.21.100 - samplefmt.h
|
||||||
|
Constify some pointees in av_samples_copy() and av_samples_set_silence().
|
||||||
|
|
||||||
2023-09-07 - xxxxxxxxxx - lavu 58.20.100 - imgutils.h
|
2023-09-07 - xxxxxxxxxx - lavu 58.20.100 - imgutils.h
|
||||||
Constify some pointees in av_image_copy(), av_image_copy_uc_from() and
|
Constify some pointees in av_image_copy(), av_image_copy_uc_from() and
|
||||||
av_image_fill_black().
|
av_image_fill_black().
|
||||||
|
@ -219,7 +219,7 @@ int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int av_samples_copy(uint8_t **dst, uint8_t * const *src, int dst_offset,
|
int av_samples_copy(uint8_t * const *dst, uint8_t * const *src, int dst_offset,
|
||||||
int src_offset, int nb_samples, int nb_channels,
|
int src_offset, int nb_samples, int nb_channels,
|
||||||
enum AVSampleFormat sample_fmt)
|
enum AVSampleFormat sample_fmt)
|
||||||
{
|
{
|
||||||
@ -243,7 +243,7 @@ int av_samples_copy(uint8_t **dst, uint8_t * const *src, int dst_offset,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int av_samples_set_silence(uint8_t **audio_data, int offset, int nb_samples,
|
int av_samples_set_silence(uint8_t * const *audio_data, int offset, int nb_samples,
|
||||||
int nb_channels, enum AVSampleFormat sample_fmt)
|
int nb_channels, enum AVSampleFormat sample_fmt)
|
||||||
{
|
{
|
||||||
int planar = av_sample_fmt_is_planar(sample_fmt);
|
int planar = av_sample_fmt_is_planar(sample_fmt);
|
||||||
|
@ -246,7 +246,7 @@ int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int
|
|||||||
* @param nb_channels number of audio channels
|
* @param nb_channels number of audio channels
|
||||||
* @param sample_fmt audio sample format
|
* @param sample_fmt audio sample format
|
||||||
*/
|
*/
|
||||||
int av_samples_copy(uint8_t **dst, uint8_t * const *src, int dst_offset,
|
int av_samples_copy(uint8_t * const *dst, uint8_t * const *src, int dst_offset,
|
||||||
int src_offset, int nb_samples, int nb_channels,
|
int src_offset, int nb_samples, int nb_channels,
|
||||||
enum AVSampleFormat sample_fmt);
|
enum AVSampleFormat sample_fmt);
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ int av_samples_copy(uint8_t **dst, uint8_t * const *src, int dst_offset,
|
|||||||
* @param nb_channels number of audio channels
|
* @param nb_channels number of audio channels
|
||||||
* @param sample_fmt audio sample format
|
* @param sample_fmt audio sample format
|
||||||
*/
|
*/
|
||||||
int av_samples_set_silence(uint8_t **audio_data, int offset, int nb_samples,
|
int av_samples_set_silence(uint8_t * const *audio_data, int offset, int nb_samples,
|
||||||
int nb_channels, enum AVSampleFormat sample_fmt);
|
int nb_channels, enum AVSampleFormat sample_fmt);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_MAJOR 58
|
#define LIBAVUTIL_VERSION_MAJOR 58
|
||||||
#define LIBAVUTIL_VERSION_MINOR 20
|
#define LIBAVUTIL_VERSION_MINOR 21
|
||||||
#define LIBAVUTIL_VERSION_MICRO 100
|
#define LIBAVUTIL_VERSION_MICRO 100
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||||
|
Loading…
Reference in New Issue
Block a user