From ce53552dda82cab33820123cbe8d1b4ec71f16e4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 27 Jan 2021 16:14:07 -0500 Subject: [PATCH] require audio_in_ctx as well as audio_in_stream --- src/zm_videostore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 22ee00c88..7e8a8f3b6 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -309,8 +309,8 @@ bool VideoStore::open() { } // end if orientation video_out_stream->time_base = video_in_stream ? video_in_stream->time_base : AV_TIME_BASE_Q; - if ( audio_in_stream ) { - Debug(2, "Have audio_in_stream"); + if ( audio_in_stream and audio_in_ctx ) { + Debug(2, "Have audio_in_stream %p", audio_in_stream); audio_in_stream_index = audio_in_stream->index; if (