[fix] use DecodedFrame ptr in decoding process

This commit is contained in:
dijunkun
2025-04-25 17:19:12 +08:00
parent fb00234498
commit db26753eca
12 changed files with 125 additions and 63 deletions

View File

@@ -24,6 +24,7 @@ class NvidiaVideoDecoder : public VideoDecoder {
NvDecoder* decoder = nullptr;
CUcontext cuda_context_ = NULL;
CUdevice cuda_device_ = 0;
DecodedFrame* decoded_frame_ = nullptr;
bool get_first_keyframe_ = false;
bool skip_frame_ = false;