diff options
author | Philip Langdale <philipl@overt.org> | 2016-02-12 21:38:41 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-02-13 16:24:37 +0300 |
commit | 8958c5c64d05453204642b55a7b8b44c93023b17 (patch) | |
tree | cfa6fc99d9b6bfb8871f14e57cb9d89de463d4bd /libavcodec/hevc.h | |
parent | 8c399bd5cefd572eceb448981fcb6d4dbca35d27 (diff) |
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>
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r-- | libavcodec/hevc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index 62edcf258f..1860bf5728 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -559,6 +559,7 @@ typedef struct SliceHeader { int short_term_ref_pic_set_size; ShortTermRPS slice_rps; const ShortTermRPS *short_term_rps; + int long_term_ref_pic_set_size; LongTermRPS long_term_rps; unsigned int list_entry_lx[2][32]; |