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 121a038 commit 204970eCopy full SHA for 204970e
src/torchcodec/_core/BetaCudaDeviceInterface.cpp
@@ -424,8 +424,8 @@ int BetaCudaDeviceInterface::frameReadyInDisplayOrder(
424
int BetaCudaDeviceInterface::receiveFrame(UniqueAVFrame& avFrame) {
425
if (readyFrames_.empty()) {
426
// No frame found, instruct caller to try again later after sending more
427
- // packets.
428
- return AVERROR(EAGAIN);
+ // packets, or to stop if EOF was already sent.
+ return eofSent_ ? AVERROR_EOF : AVERROR(EAGAIN);
429
}
430
CUVIDPARSERDISPINFO dispInfo = readyFrames_.front();
431
readyFrames_.pop();
test/test_decoders.py
@@ -45,6 +45,7 @@
45
SINE_MONO_S32_8000,
46
TEST_SRC_2_720P,
47
TEST_SRC_2_720P_H265,
48
+ unsplit_device_str,
49
)
50
51
0 commit comments