[TTVD] Do not fill range gap without decoding requests 72/324572/2
authorJakub Gajownik <j.gajownik2@samsung.com>
Mon, 19 May 2025 18:18:49 +0000 (20:18 +0200)
committerm.jurkiewicz <m.jurkiewicz@samsung.com>
Tue, 20 May 2025 14:55:31 +0000 (14:55 +0000)
Lazy frame mechanism has mechanism of range calculation
and filling timestamp gaps when next GOP is started.
It was possible to be called without any decoding request,
so assertion was failed.

To fix this, additional requirement is added, so decoding
requests list is not empty.

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-707
Change-Id: I11d24d0e9da1740f2d05b3a70dc55e74ae7ce40f
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
media/filters/tizen/ttvd_video_decoder_impl.cc

index f29e6554fb2b9f4ef2b4d9516ce1ea268f2a168a..cd68ea5ecb48acd53beaccfa2c6d642360eebc3f 100644 (file)
@@ -816,6 +816,7 @@ void TTvdVideoDecoderImpl::TriggerLazyFrames() {
   }
 
   if (frames_timestamp.empty() && CanHaveBidirectionalFrames() &&
+      !decoding_requests_.empty() &&
       decoding_requests_.size() >= MaxForwardReferenceFrameDistance(codec_) &&
       std::none_of(decoding_requests_.begin(), decoding_requests_.end(),
                    [](const DecodingRequest& decoding_request) {