From 2a878c2d8c70cd91f94603724168978a5063819f Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 4 Sep 2020 15:07:54 +0300 Subject: [PATCH] Always save all audio channels --- applications/ftl2mkv/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/ftl2mkv/src/main.cpp b/applications/ftl2mkv/src/main.cpp index d39d618f8..b746c8aa4 100644 --- a/applications/ftl2mkv/src/main.cpp +++ b/applications/ftl2mkv/src/main.cpp @@ -200,7 +200,7 @@ int main(int argc, char **argv) { // TODO: In future, find a better way to discover number of streams... // Read entire file to find all streams before reading again to write data bool res = r.read(90000000000000, [¤t_stream,¤t_channel,&r,&video_st,oc,&mapping,&stream_count,root](const ftl::codecs::StreamPacket &spkt, const ftl::codecs::Packet &pkt) { - if (current_stream != 255 && spkt.streamID != current_stream) return; + if (spkt.channel != Channel::Audio && current_stream != 255 && spkt.streamID != current_stream) return; if (spkt.channel != Channel::Colour && spkt.channel != Channel::Right && spkt.channel != Channel::Audio) return; //if (spkt.channel != static_cast<ftl::codecs::Channel>(current_channel) && current_channel != -1) return; -- GitLab