From ad69915e4ae849c42b9d4a632652dcd765ece63d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 22 Jan 2019 13:30:40 -0500 Subject: [PATCH] fix build on libav 9, ubuntu trusty --- src/zm_ffmpeg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zm_ffmpeg.cpp b/src/zm_ffmpeg.cpp index 36b499ee9..ad21f98f2 100644 --- a/src/zm_ffmpeg.cpp +++ b/src/zm_ffmpeg.cpp @@ -285,7 +285,11 @@ void zm_dump_frame(const AVFrame *frame,const char *text) { av_get_sample_fmt_name((AVSampleFormat)frame->format), frame->sample_rate, frame->nb_samples, +#if LIBAVCODEC_VERSION_CHECK(56, 8, 0, 60, 100) frame->channels, +#else +0, +#endif frame->channel_layout ); }