From: Paul Brossier Date: Thu, 13 Dec 2018 01:59:33 +0000 (+0100) Subject: [source] fix skipped samples warning in source_avcodec X-Git-Tag: 0.4.9~114 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=39c8d0810a49c5b3737d52813807d416d54d31ed;p=aubio.git [source] fix skipped samples warning in source_avcodec --- diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 3b358bc5..41954528 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -239,6 +239,8 @@ aubio_source_avcodec_t * new_aubio_source_avcodec(const char_t * path, 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) {