We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a88391 commit da3eddaCopy full SHA for da3edda
src/torchcodec/_core/SingleStreamDecoder.cpp
@@ -243,13 +243,6 @@ void SingleStreamDecoder::scanFileAndUpdateMetadataAndIndex() {
243
return;
244
}
245
246
- for (unsigned int i = 0; i < formatContext_->nb_streams; ++i) {
247
- // We want to scan and update the metadata of all streams.
248
- TORCH_CHECK(
249
- formatContext_->streams[i]->discard != AVDISCARD_ALL,
250
- "Did you add a stream before you called for a scan?");
251
- }
252
-
253
AutoAVPacket autoAVPacket;
254
while (true) {
255
ReferenceAVPacket packet(autoAVPacket);
0 commit comments