Skip to content

Commit

Permalink
SetHardwareDeviceContext
Browse files Browse the repository at this point in the history
  • Loading branch information
oldma3095 committed Dec 23, 2024
1 parent a5aeb81 commit f827411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (fc *FilterContext) SetHardwareDeviceContext(hdc *HardwareDeviceContext) {
C.av_buffer_unref(&fc.c.hw_device_ctx)
}
if hdc != nil {
fc.c.hw_device_ctx = hdc.c
fc.c.hw_device_ctx = C.av_buffer_ref(hdc.c)
} else {
fc.c.hw_device_ctx = nil
}
Expand Down

0 comments on commit f827411

Please sign in to comment.