hw:vaapi:fixed broken HEVC decoding
Since around middle of July the GetVAProfile function has been failing for the
HEVC codec because cxt->profile contains '-99' meaning unknown. At least, this
is the case for mpeg-ts anyway. I haven't tried any others.
If we instead pass in fmt and use fmt->i_profile it fixes this and HEVC
decoding works again.
I don't know what has caused this, but I can see that dxva2 references
fmt->i_profile when checking the profile, and not ctx->profile so this patch
brings vaapi into line with that.
Signed-off-by:
Thomas Guillem <thomas@gllm.fr>