[Mesa-dev] [PATCH] vl/rbsp: fix another three byte not detected
Christian König
christian.koenig at amd.com
Tue Aug 23 19:29:29 UTC 2016
Am 22.08.2016 um 18:27 schrieb Leo Liu:
> This happens when three byte "00 00 03" is partly loaded to
> vlc->buffer, and left bytes like "00 03" or "03" in the data,
> so that it will not be detected by three byte emulation check.
>
> Signed-off-by: Leo Liu <leo.liu at amd.com>
I currently don't have the time to double check that, but it sounds
reasonable to me.
So patch is Acked-by: Christian König <christian.koenig at amd.com>.
Cheers,
Christian.
> ---
> src/gallium/auxiliary/vl/vl_rbsp.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/vl/vl_rbsp.h b/src/gallium/auxiliary/vl/vl_rbsp.h
> index c8bebff..160b2f8 100644
> --- a/src/gallium/auxiliary/vl/vl_rbsp.h
> +++ b/src/gallium/auxiliary/vl/vl_rbsp.h
> @@ -56,7 +56,7 @@ static inline void vl_rbsp_init(struct vl_rbsp *rbsp, struct vl_vlc *nal, unsign
> /* copy the position */
> rbsp->nal = *nal;
>
> - rbsp->escaped = 0;
> + rbsp->escaped = 16;
>
> /* search for the end of the NAL unit */
> while (vl_vlc_search_byte(nal, num_bits, 0x00)) {
More information about the mesa-dev
mailing list