[TTVD] Fix detection of bidirectional frames in low delay mode 19/322319/3
authorJakub Gajownik <j.gajownik2@samsung.com>
Fri, 4 Apr 2025 07:07:11 +0000 (09:07 +0200)
committerBot Blink <blinkbot@samsung.com>
Tue, 8 Apr 2025 08:57:38 +0000 (08:57 +0000)
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>
media/filters/tizen/ttvd_video_decoder_impl.cc

index 571f3394cae3123c6e23e183dc99e6b6b36b3bab..bc1c539e3fb0b152390019c2759dbbb17daa518c 100644 (file)
@@ -784,10 +784,7 @@ bool TTvdVideoDecoderImpl::ShouldTriggerLazyFrame(
 }
 
 bool TTvdVideoDecoderImpl::CanHaveBidirectionalFrames() const {
-  if (low_delay_) {
-    return false;
-  }
-  return MaxForwardReferenceFrameDistance(codec_) != 0;
+  return config_.has_bidirectional_frames;
 }
 
 void TTvdVideoDecoderImpl::CallRender(