Skip to content

Commit 31d025b

Browse files
committed
Fix compilation
1 parent f512912 commit 31d025b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -877,10 +877,9 @@ torch::Tensor VideoDecoder::getFramesPlayedInRangeAudio(
877877
auto finished = false;
878878
while (!finished) {
879879
try {
880-
AVFrameStream avFrameStream =
881-
decodeAVFrame([this, startPts](AVFrame* avFrame) {
882-
return startPts < avFrame->pts + getDuration(avFrame);
883-
});
880+
AVFrameStream avFrameStream = decodeAVFrame([startPts](AVFrame* avFrame) {
881+
return startPts < avFrame->pts + getDuration(avFrame);
882+
});
884883
auto frameOutput = convertAVFrameToFrameOutput(avFrameStream);
885884
tensors.push_back(frameOutput.data);
886885
} catch (const EndOfFileException& e) {

0 commit comments

Comments
 (0)