From 7d97267dd2e27cc1a0e96e95364b4ec3812dc12e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 6 Jun 2017 15:35:17 -0400 Subject: [PATCH] fix compile on old ffmpeg --- src/zm_videostore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 89537d87f..e7ad821d9 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -455,11 +455,13 @@ bool VideoStore::setup_resampler() { // Now copy them to the output stream audio_output_stream = avformat_new_stream( oc, audio_output_codec ); +#if LIBAVCODEC_VERSION_CHECK(57, 0, 0, 0, 0) ret = avcodec_parameters_from_context( audio_output_stream->codecpar, audio_output_context ); if ( ret < 0 ) { Error( "Could not initialize stream parameteres"); return false; } +#endif AVDictionary *opts = NULL; av_dict_set( &opts, "strict", "experimental", 0);