From 1282e36bb230b0bde7424f07fb91656a1391e740 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 28 Apr 2016 12:56:40 -0400 Subject: [PATCH] av_get_media_type_string is not available in trusty --- src/zm_ffmpeg_camera.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zm_ffmpeg_camera.cpp b/src/zm_ffmpeg_camera.cpp index 88a2a43c5..a6ca38e67 100644 --- a/src/zm_ffmpeg_camera.cpp +++ b/src/zm_ffmpeg_camera.cpp @@ -681,7 +681,11 @@ int FfmpegCamera::CaptureAndRecord( Image &image, bool recording, char* event_fi } } } else { +#if LIBAVUTIL_VERSION_CHECK(54, 23, 0, 23, 0) Debug( 3, "Some other stream index %d, %s", packet.stream_index, av_get_media_type_string( mFormatContext->streams[packet.stream_index]->codec->codec_type) ); +#else + Debug( 3, "Some other stream index %d", packet.stream_index ); +#endif } av_free_packet( &packet ); } // end while ! frameComplete