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) {
char errorstr[256];