[XMA] don't queue output subframes when frame decode fails

This commit is contained in:
Herman S.
2026-02-20 16:09:38 +09:00
parent 2c75055caf
commit cc53e0252a

View File

@@ -454,12 +454,10 @@ void XmaContextNew::Decode(XMA_CONTEXT_DATA* data) {
// dump_raw(av_frame_, id());
ConvertFrame(reinterpret_cast<const uint8_t**>(&av_frame_->data),
bool(data->is_stereo), raw_frame_.data());
// TODO: Be aware of subframe_skips & loops subframes skips
current_frame_remaining_subframes_ = 4 << data->is_stereo;
}
// TODO: Write function to regenerate decoder
// TODO: Be aware of subframe_skips & loops subframes skips
current_frame_remaining_subframes_ = 4 << data->is_stereo;
// Compute where to go next.
if (!packet_info.isLastFrameInPacket()) {
const uint32_t next_frame_offset =