mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
avcodec: deprecate getters and setters for AVCodecContext and AVCodec fields
The fields can be accessed directly, so these are not needed anymore. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -552,6 +552,7 @@ enum AVPixelFormat avpriv_find_pix_fmt(const PixelFormatTag *tags,
|
||||
return AV_PIX_FMT_NONE;
|
||||
}
|
||||
|
||||
#if FF_API_CODEC_GET_SET
|
||||
MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
|
||||
MAKE_ACCESSORS(AVCodecContext, codec, const AVCodecDescriptor *, codec_descriptor)
|
||||
MAKE_ACCESSORS(AVCodecContext, codec, int, lowres)
|
||||
@@ -567,6 +568,7 @@ int av_codec_get_max_lowres(const AVCodec *codec)
|
||||
{
|
||||
return codec->max_lowres;
|
||||
}
|
||||
#endif
|
||||
|
||||
int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec){
|
||||
return !!(codec->caps_internal & FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM);
|
||||
|
||||
Reference in New Issue
Block a user