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.
deviceInterface_
1 parent beeeb1c commit e12e466Copy full SHA for e12e466
src/torchcodec/_core/SingleStreamDecoder.cpp
@@ -1246,7 +1246,11 @@ FrameOutput SingleStreamDecoder::convertAVFrameToFrameOutput(
1246
formatContext_->streams[activeStreamIndex_]->time_base);
1247
if (streamInfo.avMediaType == AVMEDIA_TYPE_AUDIO) {
1248
convertAudioAVFrameToFrameOutputOnCPU(avFrame, frameOutput);
1249
- } else if (deviceInterface_) {
+ } else {
1250
+ TORCH_CHECK(
1251
+ deviceInterface_ != nullptr,
1252
+ "No device interface available for video decoding. This ",
1253
+ "shouldn't happen, please report.");
1254
deviceInterface_->convertAVFrameToFrameOutput(
1255
streamInfo.videoStreamOptions,
1256
streamInfo.timeBase,
0 commit comments