Fix a reference leak of hw_frames_ctx and prepare for QSV (#736)
This commit is contained in:
@@ -53,7 +53,7 @@ int nv12_zero_device::convert(platf::img_t &img) {
|
||||
return result > 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
int nv12_zero_device::set_frame(AVFrame *frame) {
|
||||
int nv12_zero_device::set_frame(AVFrame *frame, AVBufferRef *hw_frames_ctx) {
|
||||
this->frame = frame;
|
||||
|
||||
av_frame.reset(frame);
|
||||
|
||||
Reference in New Issue
Block a user