Changeset 2434566 for src


Ignore:
Timestamp:
Dec 13, 2018, 3:36:33 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
7735d06
Parents:
0f5837d
Message:

[io] avoid deprecation warning avcodec <= 58.3.102

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r0f5837d r2434566  
    4545#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,0,0)
    4646#define HAVE_AUBIO_LIBAVCODEC_DEPRECATED 1
     47#endif
     48
     49#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,3,102)
     50#define HAVE_AUBIO_LIBAVCODEC_TIMEBASE_FIX 1
    4751#endif
    4852
     
    240244    goto beach;
    241245  }
    242 #if FFMPEG_LIBAVFORMAT // deprecated with ffmpeg, required with libav
     246#if HAVE_AUBIO_LIBAVCODEC_TIMEBASE_FIX
     247  // avoids 'skipped frames warning' with avecodec < 58, deprecated after
    243248  av_codec_set_pkt_timebase(avCodecCtx,
    244249      avFormatCtx->streams[selected_stream]->time_base);
Note: See TracChangeset for help on using the changeset viewer.