File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -244,18 +244,15 @@ UniqueAVFrame CudaDeviceInterface::maybeConvertAVFrameToNV12(
244
244
// n5.0. With the earlier version of ffmpeg we have no choice but use CPU
245
245
// filters. See:
246
246
// https://github.com/FFmpeg/FFmpeg/commit/62dc5df941f5e196164c151691e4274195523e95
247
- // outputFormat = AV_PIX_FMT_RGB24;
248
- outputFormat = AV_PIX_FMT_CUDA;
247
+ outputFormat = AV_PIX_FMT_RGB24;
249
248
250
- /*
251
249
auto actualFormatName = av_get_pix_fmt_name (actualFormat);
252
250
TORCH_CHECK (
253
251
actualFormatName != nullptr ,
254
252
" The actual format of a frame is unknown to FFmpeg. "
255
253
" That's unexpected, please report this to the TorchCodec repo." );
256
254
257
- */
258
- filters << " hwupload,format=nv12" ;
255
+ filters << " hwdownload,format=" << actualFormatName;
259
256
} else {
260
257
// Actual output color format will be set via filter options
261
258
outputFormat = AV_PIX_FMT_CUDA;
You can’t perform that action at this time.
0 commit comments