Skip to content

Commit 6668f4b

Browse files
committed
Specify hwdownload format as rgb24
1 parent 139e4ff commit 6668f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/CudaDeviceInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ UniqueAVFrame CudaDeviceInterface::maybeConvertAVFrameToNV12(
254254
"That's unexpected, please report this to the TorchCodec repo.");
255255
256256
*/
257-
filters << "hwdownload";
257+
filters << "hwdownload,format=rgb24";
258258
} else {
259259
// Actual output color format will be set via filter options
260260
outputFormat = AV_PIX_FMT_CUDA;

0 commit comments

Comments
 (0)