shithub: aubio

Download patch

ref: 39c8d0810a49c5b3737d52813807d416d54d31ed
parent: a97eb17080f83a762b0004119080b07926e4bf7e
author: Paul Brossier <piem@piem.org>
date: Wed Dec 12 21:59:33 EST 2018

[source] fix skipped samples warning in source_avcodec

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