frontends/va: Fix parsing packed headers without emulation bytes
authorDavid Rosca <nowrep@gmail.com>
Thu, 5 Oct 2023 14:47:21 +0000 (16:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 01:03:58 +0000 (01:03 +0000)
commit3c5d82142d403acddfa366905114fb4e4cd3946f
treee8a48acb407b2436f05e77c2105d6a3f38be1c1f
parent081f972ebaff9dda837249e441b22c58d9e331bb
frontends/va: Fix parsing packed headers without emulation bytes

Don't try to handle emulation bytes and only parse first NAL unit
if the packed header has no emulation bytes.

This fixes parsing packed headers from gstreamer.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25565>
src/gallium/frontends/va/picture.c
src/gallium/frontends/va/picture_h264_enc.c
src/gallium/frontends/va/picture_hevc_enc.c
src/gallium/frontends/va/va_private.h