From: Steinar H. Gunderson Date: Wed, 27 Mar 2019 22:15:54 +0000 (+0100) Subject: In Futatabi, ignore non-video streams for now. X-Git-Tag: 1.8.5~11 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=a3b76e5ad9493b0af08fdcbe6d6b689d91496f85 In Futatabi, ignore non-video streams for now. --- 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; }