@@ -68,7 +68,7 @@ std::deque<Rational> Codec::supportedFramerates() const
6868 return {};
6969 deque<Rational> frameRates;
7070 const AVRational *frameRatesRaw = nullptr ;
71- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
71+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
7272 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_FRAME_RATE, 0 , reinterpret_cast <const void **>(&frameRatesRaw), nullptr );
7373#else
7474 frameRatesRaw = m_raw->supported_framerates ;
@@ -91,7 +91,7 @@ std::deque<PixelFormat> Codec::supportedPixelFormats() const
9191 deque<PixelFormat> pixFmts;
9292 const enum AVPixelFormat *pixFmtsRaw = nullptr ;
9393
94- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
94+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
9595 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_PIX_FORMAT, 0 , reinterpret_cast <const void **>(&pixFmtsRaw), nullptr );
9696#else
9797 pixFmtsRaw = m_raw->pix_fmts ;
@@ -115,7 +115,7 @@ std::deque<int> Codec::supportedSamplerates() const
115115 deque<int > sampleRates;
116116 const int *sampleRatesRaw = nullptr ;
117117
118- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
118+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
119119 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_SAMPLE_RATE, 0 , reinterpret_cast <const void **>(&sampleRatesRaw), nullptr );
120120#else
121121 sampleRatesRaw = m_raw->supported_samplerates ;
@@ -139,7 +139,7 @@ std::deque<SampleFormat> Codec::supportedSampleFormats() const
139139 deque<SampleFormat> sampleFmts;
140140 const enum AVSampleFormat *sampleFmtsRaw = nullptr ;
141141
142- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
142+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
143143 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0 , reinterpret_cast <const void **>(&sampleFmtsRaw), nullptr );
144144#else
145145 sampleFmtsRaw = m_raw->sample_fmts ;
@@ -165,7 +165,7 @@ std::deque<uint64_t> Codec::supportedChannelLayouts() const
165165#if API_NEW_CHANNEL_LAYOUT
166166 const AVChannelLayout *channelLayoutsRaw = nullptr ;
167167
168- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
168+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
169169 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_CHANNEL_LAYOUT, 0 , reinterpret_cast <const void **>(&channelLayoutsRaw), nullptr );
170170#else
171171 channelLayoutsRaw = m_raw->ch_layouts ;
@@ -198,7 +198,7 @@ std::deque<ChannelLayoutView> Codec::supportedChannelLayouts2() const
198198 deque<ChannelLayoutView> channelLayouts;
199199 const AVChannelLayout *channelLayoutsRaw = nullptr ;
200200
201- #if USE_AVCODEC_GET_SUPPORTED_CONFIG
201+ #if API_AVCODEC_GET_SUPPORTED_CONFIG
202202 avcodec_get_supported_config (nullptr , m_raw, AV_CODEC_CONFIG_CHANNEL_LAYOUT, 0 , reinterpret_cast <const void **>(&channelLayoutsRaw), nullptr );
203203#else
204204 channelLayoutsRaw = m_raw->ch_layouts ;
0 commit comments