File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff 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());
Original file line number Diff line number Diff line change @@ -232,13 +232,6 @@ void add_audio_stream(
232232}
233233
234234void 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}
You can’t perform that action at this time.
0 commit comments