[XMA] don't queue output subframes when frame decode fails
This commit is contained in:
@@ -454,12 +454,10 @@ void XmaContextNew::Decode(XMA_CONTEXT_DATA* data) {
|
|||||||
// dump_raw(av_frame_, id());
|
// dump_raw(av_frame_, id());
|
||||||
ConvertFrame(reinterpret_cast<const uint8_t**>(&av_frame_->data),
|
ConvertFrame(reinterpret_cast<const uint8_t**>(&av_frame_->data),
|
||||||
bool(data->is_stereo), raw_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.
|
// Compute where to go next.
|
||||||
if (!packet_info.isLastFrameInPacket()) {
|
if (!packet_info.isLastFrameInPacket()) {
|
||||||
const uint32_t next_frame_offset =
|
const uint32_t next_frame_offset =
|
||||||
|
|||||||
Reference in New Issue
Block a user