Previously, we were checking for bidirectional frames
occurances according to "low_delay" parameter. It's invalid
as we can still have content that contains them.
It leads to invalid order of generated lazy frames.
Instead, this CL starts to check according to the parsed
from the content itself, so we should always get corrent
informations.
Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-685
Change-Id: Ib2c8af9ed3769f1f582b7de35d2581a6736f8b2f
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
}
bool TTvdVideoDecoderImpl::CanHaveBidirectionalFrames() const {
- if (low_delay_) {
- return false;
- }
- return MaxForwardReferenceFrameDistance(codec_) != 0;
+ return config_.has_bidirectional_frames;
}
void TTvdVideoDecoderImpl::CallRender(