intel / intel/vpl-gpu-rt

[Bug]: mjpeg vaapi encoder checks against 0 instead of INVALID

Open
#300 0 comments 0 reactions 1 assignee Claimed by @yefeizhou View on GitHub
Dominant language
C++
Stars
157
Forks
104
PR merge metrics
No merged PRs in 30d

Description

### Which component impacted?

Not sure

### Is it regression? Good in old configuration?

None

### What happened?

https://github.com/oneapi-src/oneVPL-intel-gpu/blob/main/_studio/mfx_lib/encode_hw/mjpeg/src/mfx_mjpeg_encode_vaapi.cpp#L531

Incorrectly checks against 0 instead of invalid, this trips debug asserts in the vaapi driver.

### What's the usage scenario when you are seeing the problem?

Others

### What impacted?

Run onVPL with debug asserts enabled in the vaapi driver and try and create a session.

### Debug Information

You can review your own h264 implementation for the proper checks.

### Do you want to contribute a patch to fix the issue?

No.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.