transcoder.debug_log(DebugLog::ENCODE, &format!(" Packet from stream {src_id} dropped"));
},
OutputMode::Copy(dst_id) => {
+ if mux_quirks.is_global_pal() && pkt.ts.pts != Some(0) &&
+ pkt.side_data.iter().any(|sd| matches!(sd, NASideData::Palette(true, _))) {
+ println!("Palette change encountered while muxer does not support that!");
+ break 'main_loop;
+ }
let dstr = mux.get_stream(dst_id as usize).unwrap();
pkt.reassign(dstr, pkt.get_time_information());
transcoder.debug_log(DebugLog::ENCODE, &format!(" Packet from stream {src_id} copied to {dst_id}"));
transcoder.queue.queue_packet(pkt, &mut transcoder.debug);
},
OutputMode::Encode(dst_id, ref mut encoder) => {
+ if mux_quirks.is_global_pal() && pkt.ts.pts != Some(0) &&
+ pkt.side_data.iter().any(|sd| matches!(sd, NASideData::Palette(true, _))) {
+ println!("Palette change encountered while muxer does not support that!");
+ break 'main_loop;
+ }
if let Some(ref mut dec_ctx) = transcoder.decoders[src_id] {
let ret = dec_ctx.decoder.decode(&mut dec_ctx.dsupp, &pkt);
if let Some(ref mut dbg) = transcoder.debug {