File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -630,15 +630,15 @@ FrameBatchOutput SingleStreamDecoder::getFramesInRange(
630
630
FrameOutput SingleStreamDecoder::getFramePlayedAt (double seconds) {
631
631
validateActiveStream (AVMEDIA_TYPE_VIDEO);
632
632
StreamInfo& streamInfo = streamInfos_[activeStreamIndex_];
633
- double frameStartTime =
633
+ double lastDecodedStartTime =
634
634
ptsToSeconds (streamInfo.lastDecodedAvFramePts , streamInfo.timeBase );
635
- double frameEndTime = ptsToSeconds (
635
+ double lastDecodedEndTime = ptsToSeconds (
636
636
streamInfo.lastDecodedAvFramePts + streamInfo.lastDecodedAvFrameDuration ,
637
637
streamInfo.timeBase );
638
- if (seconds >= frameStartTime && seconds < frameEndTime ) {
638
+ if (seconds >= lastDecodedStartTime && seconds < lastDecodedEndTime ) {
639
639
// We are in the same frame as the one we just returned. However, since we
640
640
// don't cache it locally, we have to rewind back.
641
- seconds = frameStartTime ;
641
+ seconds = lastDecodedStartTime ;
642
642
}
643
643
644
644
setCursorPtsInSeconds (seconds);
You can’t perform that action at this time.
0 commit comments