mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/avcodec: Constify the return value of av_bitstream_filter_next().
Fixes the following gcc warning: libavcodec/bitstream_filter.c:39:12: warning: return discards 'const' qualifier from pointer target type
This commit is contained in:
parent
a07ac93023
commit
f2c867051c
|
@ -5484,7 +5484,7 @@ void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
|
||||||
* filters.
|
* filters.
|
||||||
*/
|
*/
|
||||||
attribute_deprecated
|
attribute_deprecated
|
||||||
AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
|
const AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#if FF_API_OLD_BSF
|
#if FF_API_OLD_BSF
|
||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f)
|
const AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f)
|
||||||
{
|
{
|
||||||
const AVBitStreamFilter *filter = NULL;
|
const AVBitStreamFilter *filter = NULL;
|
||||||
void *opaque = NULL;
|
void *opaque = NULL;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_MAJOR 58
|
#define LIBAVCODEC_VERSION_MAJOR 58
|
||||||
#define LIBAVCODEC_VERSION_MINOR 0
|
#define LIBAVCODEC_VERSION_MINOR 0
|
||||||
#define LIBAVCODEC_VERSION_MICRO 100
|
#define LIBAVCODEC_VERSION_MICRO 101
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
LIBAVCODEC_VERSION_MINOR, \
|
LIBAVCODEC_VERSION_MINOR, \
|
||||||
|
|
Loading…
Reference in New Issue