From a3b76e5ad9493b0af08fdcbe6d6b689d91496f85 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 27 Mar 2019 23:15:54 +0100 Subject: [PATCH] In Futatabi, ignore non-video streams for now. --- futatabi/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 6dc5064..4c54d33 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -502,7 +502,8 @@ void record_thread_func() if (av_read_frame(format_ctx.get(), &pkt) != 0) { break; } - if (pkt.stream_index >= MAX_STREAMS) { + if (pkt.stream_index >= MAX_STREAMS || + format_ctx->streams[pkt.stream_index]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO) { continue; } -- 2.39.2