hevc: Track long and short term RPS size for VDPAU
authorPhilip Langdale <philipl@overt.org>
Fri, 12 Feb 2016 18:38:41 +0000 (20:38 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 13 Feb 2016 13:24:37 +0000 (14:24 +0100)
commit8958c5c64d05453204642b55a7b8b44c93023b17
treecfa6fc99d9b6bfb8871f14e57cb9d89de463d4bd
parent8c399bd5cefd572eceb448981fcb6d4dbca35d27
hevc: Track long and short term RPS size for VDPAU

Today, we track the short term RPS size for DXVA, but only if the
SliceHeader RPS is being used. Otherwise it's left uninitialized.

NVIDIA's VDPAU implementation requires that the size be accurately
tracked even if an SPS RPS is being used. In this case, it's really
counting the size of the RPS idx information, but you end up with
mangled output if the value is not accurate.

VDPAU also needs the size of the long term RPS.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: RĂ©mi Denis-Courmont <remi@remlab.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/hevc.c
libavcodec/hevc.h