intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

Hardware decoding returns null pointers #93

Closed FallingSnow closed 1 year ago

FallingSnow commented 1 year ago

When I decode via software everything works as expected. But when I switch over to hardware decoding the data buffers are null. Do you need to pass a work surface rather than null to MFXVideoDECODE_DecodeFrameAsync when decoding via hardware?

FallingSnow commented 1 year ago

Found out what I was doing wrong. Initialized a variable to the value (not a pointer) then called the map interface function. The variable kept the old value. This works with SW because there is no need to map the data, but on hardware this is initially null till mapped. Silly mistake.