Merge pull request #1658 from cristisilaghi/master2

obs-ffmpeg: Fix crash when audio not configured
This commit is contained in:
Jim 2019-02-11 13:04:23 -08:00 committed by GitHub
commit 25bc6db718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -894,6 +894,10 @@ static void receive_audio(void *param, size_t mix_idx, struct audio_data *frame)
struct audio_data in;
int track_order;
// codec doesn't support audio or none configured
if (!data->audio_streams)
return;
/* check that the track was selected */
if ((data->audio_tracks & (1 << mix_idx)) == 0)
return;