obs-ffmpeg/ffmpeg-mux: Fix failing when no video

(Jim: Technically this should never be used without video)

Closes jp9000/obs-studio#795
This commit is contained in:
Lionheart Zhang
2017-02-10 19:53:49 +08:00
committed by jp9000
parent 8a6491c9bf
commit 5ade7f74f2

View File

@@ -355,7 +355,8 @@ static void create_audio_stream(struct ffmpeg_mux *ffm, int idx)
static bool init_streams(struct ffmpeg_mux *ffm)
{
create_video_stream(ffm);
if (ffm->params.has_video)
create_video_stream(ffm);
if (ffm->params.tracks) {
ffm->audio_streams =