projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c8d08
)
[io] avoid deprecation warning with ffmpeg
author
Paul Brossier
<piem@piem.org>
Thu, 13 Dec 2018 02:10:08 +0000
(
03:10
+0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 13 Dec 2018 02:10:08 +0000
(
03:10
+0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
4195452
..
537b662
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-239,9
+239,11
@@
aubio_source_avcodec_t * new_aubio_source_avcodec(const char_t * path,
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];