File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1184,7 +1184,7 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getNextRawDecodedOutputNoDemux() {
11841184 getDecodedOutputWithFilter ([this ](int frameStreamIndex, AVFrame* frame) {
11851185 StreamInfo& activeStream = streams_[frameStreamIndex];
11861186 return frame->pts >=
1187- activeStream.discardFramesBeforePts . value_or (INT64_MIN) ;
1187+ activeStream.discardFramesBeforePts ;
11881188 });
11891189 return rawOutput;
11901190}
Original file line number Diff line number Diff line change @@ -311,8 +311,8 @@ class VideoDecoder {
311311 int64_t currentDuration = 0 ;
312312 // The desired position of the cursor in the stream. We send frames >=
313313 // this pts to the user when they request a frame.
314- // We set this field if the user requested a seek.
315- std::optional< int64_t > discardFramesBeforePts = 0 ;
314+ // We update this field if the user requested a seek.
315+ int64_t discardFramesBeforePts = INT64_MIN ;
316316 VideoStreamDecoderOptions options;
317317 // The filter state associated with this stream (for video streams). The
318318 // actual graph will be nullptr for inactive streams.
You can’t perform that action at this time.
0 commit comments