@@ -68,7 +68,7 @@ std::deque<Rational> Codec::supportedFramerates() const
68
68
return {};
69
69
deque<Rational> frameRates;
70
70
const AVRational *frameRatesRaw = nullptr ;
71
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
71
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
72
72
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_FRAME_RATE, 0 , reinterpret_cast <const void **>(&frameRatesRaw), nullptr );
73
73
#else
74
74
frameRatesRaw = m_raw->supported_framerates ;
@@ -91,7 +91,7 @@ std::deque<PixelFormat> Codec::supportedPixelFormats() const
91
91
deque<PixelFormat> pixFmts;
92
92
const enum AVPixelFormat *pixFmtsRaw = nullptr ;
93
93
94
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
94
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
95
95
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_PIX_FORMAT, 0 , reinterpret_cast <const void **>(&pixFmtsRaw), nullptr );
96
96
#else
97
97
pixFmtsRaw = m_raw->pix_fmts ;
@@ -115,7 +115,7 @@ std::deque<int> Codec::supportedSamplerates() const
115
115
deque<int > sampleRates;
116
116
const int *sampleRatesRaw = nullptr ;
117
117
118
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
118
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
119
119
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_SAMPLE_RATE, 0 , reinterpret_cast <const void **>(&sampleRatesRaw), nullptr );
120
120
#else
121
121
sampleRatesRaw = m_raw->supported_samplerates ;
@@ -139,7 +139,7 @@ std::deque<SampleFormat> Codec::supportedSampleFormats() const
139
139
deque<SampleFormat> sampleFmts;
140
140
const enum AVSampleFormat *sampleFmtsRaw = nullptr ;
141
141
142
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
142
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
143
143
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0 , reinterpret_cast <const void **>(&sampleFmtsRaw), nullptr );
144
144
#else
145
145
sampleFmtsRaw = m_raw->sample_fmts ;
@@ -165,7 +165,7 @@ std::deque<uint64_t> Codec::supportedChannelLayouts() const
165
165
#if API_NEW_CHANNEL_LAYOUT
166
166
const AVChannelLayout *channelLayoutsRaw = nullptr ;
167
167
168
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
168
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
169
169
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_CHANNEL_LAYOUT, 0 , reinterpret_cast <const void **>(&channelLayoutsRaw), nullptr );
170
170
#else
171
171
channelLayoutsRaw = m_raw->ch_layouts ;
@@ -198,7 +198,7 @@ std::deque<ChannelLayoutView> Codec::supportedChannelLayouts2() const
198
198
deque<ChannelLayoutView> channelLayouts;
199
199
const AVChannelLayout *channelLayoutsRaw = nullptr ;
200
200
201
- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
201
+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
202
202
avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_CHANNEL_LAYOUT, 0 , reinterpret_cast <const void **>(&channelLayoutsRaw), nullptr );
203
203
#else
204
204
channelLayoutsRaw = m_raw->ch_layouts ;
0 commit comments