intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
304 stars 126 forks source link

Fix JPEG decoding of an oddly encoded files on gen7/8 #530

Open digetx opened 3 years ago

digetx commented 3 years ago

Intel VA-API driver fails to decode couple JPEG files for me because of the offending implicit u8->int32 expansion in the code of the driver. This PR fixes the implicit integer expansion and decoding works properly now.

rathann commented 2 months ago

@digetx could you provide a sample JPEG file that fails to decode? I have a Haswell CPU and cannot find any JPEGs that would fail to decode locally.

digetx commented 2 months ago

Don't have those files anymore. IIRC, the fix was inspired by the FFMPEG swdec code.