Skip to content

Commit 0ca69b2

Browse files
committed
Provide refactoring
1 parent 75cca04 commit 0ca69b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/cpp/src/decoder/decoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ uint64_t Decoder::seekTo(const long timestampMicros, const bool keyframesOnly) {
680680
throw DecoderException("Timestamp out of bounds");
681681
}
682682

683-
if (format.durationMicros == 0 || (!_hasAudio() && !_hasVideo())) {
683+
if (format.frameRate == 0 || format.durationMicros == 0 || (!_hasAudio() && !_hasVideo())) {
684684
return 0;
685685
}
686686

0 commit comments

Comments
 (0)