Skip to content

Commit f5ff8f0

Browse files
committed
Cleanup
1 parent d3b4e05 commit f5ff8f0

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/torchcodec/decoders/_core/VideoDecoder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ class VideoDecoder {
137137
torch::Device device = torch::kCPU;
138138
};
139139

140-
struct AudioStreamOptions {};
141-
142140
void addVideoStream(
143141
int streamIndex,
144142
const VideoStreamOptions& videoStreamOptions = VideoStreamOptions());

src/torchcodec/decoders/_core/VideoDecoderOps.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,6 @@ void add_audio_stream(
232232
}
233233

234234
void seek_to_pts(at::Tensor& decoder, double seconds) {
235-
// TODO we should prevent more than one call to this op for audio streams, for
236-
// the same reasons we do so for getFramesPlayedInRange(). But we can't
237-
// implement the logic here, because we don't know media type (audio vs
238-
// video). We also can't do it within setCursorPtsInSeconds because it's used
239-
// by all other decoding methods.
240-
// This isn't un-doable, just not easy with the API we currently have.
241-
242235
auto videoDecoder = static_cast<VideoDecoder*>(decoder.mutable_data_ptr());
243236
videoDecoder->setCursorPtsInSeconds(seconds);
244237
}

0 commit comments

Comments
 (0)