fix: fail on hw frame

This commit is contained in:
2024-11-06 10:07:28 +00:00
parent f37b399faa
commit f900d96340
4 changed files with 21 additions and 5 deletions

View File

@ -3,7 +3,6 @@ use ffmpeg_sys_the_third::AVHWDeviceType::{
AV_HWDEVICE_TYPE_CUDA, AV_HWDEVICE_TYPE_D3D12VA, AV_HWDEVICE_TYPE_MEDIACODEC,
AV_HWDEVICE_TYPE_OPENCL, AV_HWDEVICE_TYPE_VDPAU, AV_HWDEVICE_TYPE_VULKAN,
};
use ffmpeg_sys_the_third::AVPixelFormat::AV_PIX_FMT_BGR24;
use ffmpeg_sys_the_third::{av_frame_free, av_packet_free, AVMediaType};
use log::{error, info};
use std::env::args;