shithub: aubio

Download patch

ref: 0f5837d10d4fc8f9d94b6a0591af4743bcbfb5fa
parent: 39c8d0810a49c5b3737d52813807d416d54d31ed
author: Paul Brossier <piem@piem.org>
date: Wed Dec 12 22:10:08 EST 2018

[io] avoid deprecation warning with ffmpeg

--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -239,8 +239,10 @@
         av_get_media_type_string(AVMEDIA_TYPE_AUDIO), s->path);
     goto beach;
   }
+#if FFMPEG_LIBAVFORMAT // deprecated with ffmpeg, required with libav
   av_codec_set_pkt_timebase(avCodecCtx,
       avFormatCtx->streams[selected_stream]->time_base);
+#endif
 #endif
 
   if ( ( err = avcodec_open2(avCodecCtx, codec, NULL) ) < 0) {