st/omx/dec/h265: fix the skip for before and after list
authorLeo Liu <leo.liu@amd.com>
Fri, 23 Sep 2016 16:05:16 +0000 (12:05 -0400)
committerLeo Liu <leo.liu@amd.com>
Tue, 4 Oct 2016 15:09:59 +0000 (11:09 -0400)
commitffb863fd2c8a5d32001575b09d96dbce4983a5ce
treec2ac5fc2606a30bde2369dd9d4381c9c0381265b
parentc50b68e6a882c95b58f46fba87c8f3531a2913d1
st/omx/dec/h265: fix the skip for before and after list

For reference picture sets, there are cases that rps will not always
be used. Once detect the unused flag from encoded bitstream, we should
not add this rps to any list, otherwise pass the incorrect reference
and skip the correct rps.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/state_trackers/omx/vid_dec_h265.c