X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmain.cpp;h=4c54d332d24951b9118798b86c90ef3ab10e464b;hb=a3b76e5ad9493b0af08fdcbe6d6b689d91496f85;hp=6dc50649c2c22d723f3e01b46686e95c694e844f;hpb=3630741c0d8c1d73fb7d888e1eb772e53f117105;p=nageru 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; }