Skip to content
Snippets Groups Projects
Commit 2a878c2d authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Always save all audio channels

parent 4157c2d6
No related branches found
No related tags found
1 merge request!346Save audio to MKV files
Pipeline #29767 passed
This commit is part of merge request !346. Comments created here will be created in the context of that merge request.
......@@ -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, [&current_stream,&current_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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment