require audio_in_ctx as well as audio_in_stream

This commit is contained in:
Isaac Connor 2021-01-27 16:14:07 -05:00
parent 6271971912
commit ce53552dda
1 changed files with 2 additions and 2 deletions

View File

@ -309,8 +309,8 @@ bool VideoStore::open() {
} // end if orientation } // end if orientation
video_out_stream->time_base = video_in_stream ? video_in_stream->time_base : AV_TIME_BASE_Q; video_out_stream->time_base = video_in_stream ? video_in_stream->time_base : AV_TIME_BASE_Q;
if ( audio_in_stream ) { if ( audio_in_stream and audio_in_ctx ) {
Debug(2, "Have audio_in_stream"); Debug(2, "Have audio_in_stream %p", audio_in_stream);
audio_in_stream_index = audio_in_stream->index; audio_in_stream_index = audio_in_stream->index;
if ( if (