mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
NANCY: Silence potential nullptr dereference warning
This commit is contained in:
parent
779e22f4a8
commit
0f28c64d6a
@ -79,6 +79,9 @@ void AVFDecoder::addFrameTime(const uint16 timeToAdd) {
|
||||
// Custom function to allow the last frame of the video to play correctly
|
||||
bool AVFDecoder::atEnd() const {
|
||||
const AVFDecoder::AVFVideoTrack *track = ((const AVFDecoder::AVFVideoTrack *)getTrack(0));
|
||||
if (!track) {
|
||||
return true;
|
||||
}
|
||||
return !track->isReversed() && track->endOfTrack() && track->getFrameTime(track->getFrameCount()) <= getTime();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user