Changeset 53bc55c
- Timestamp:
- Dec 27, 2023, 6:58:55 PM (12 months ago)
- Branches:
- master
- Children:
- 8e9d3a3
- Parents:
- 0b947f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r0b947f9 r53bc55c 53 53 #endif 54 54 55 #if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(57,28,100) 56 #warning "libavutil < 57.28.100 is deprecated" 57 #else 58 #define LIBAVUTIL_HAS_CH_LAYOUT 59 #endif 60 55 61 #include "aubio_priv.h" 56 62 #include "fvec.h" … … 264 270 /* get input specs */ 265 271 s->input_samplerate = avCodecCtx->sample_rate; 266 #ifdef AVUTIL_CHANNEL_LAYOUT_H272 #ifdef LIBAVUTIL_HAS_CH_LAYOUT 267 273 s->input_channels = avCodecCtx->ch_layout.nb_channels; 268 274 #else … … 334 340 int err; 335 341 SwrContext *avr = swr_alloc(); 336 #ifdef AVUTIL_CHANNEL_LAYOUT_H342 #ifdef LIBAVUTIL_HAS_CH_LAYOUT 337 343 AVChannelLayout input_layout; 338 344 AVChannelLayout output_layout; … … 385 391 int got_frame = 0; 386 392 int in_samples = avFrame->nb_samples; 387 #ifdef AVUTIL_CHANNEL_LAYOUT_H393 #ifdef LIBAVUTIL_HAS_CH_LAYOUT 388 394 int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->ch_layout.nb_channels; 389 395 #else … … 457 463 458 464 #if LIBAVUTIL_VERSION_MAJOR > 52 459 #ifdef AVUTIL_CHANNEL_LAYOUT_H465 #ifdef LIBAVUTIL_HAS_CH_LAYOUT 460 466 int frame_channels = avFrame->ch_layout.nb_channels; 461 467 #else
Note: See TracChangeset
for help on using the changeset viewer.