summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2015-06-13 09:34:43 -0700
committerPhilip Langdale <philipl@overt.org>2015-06-13 21:09:24 -0700
commit1b19d0c6328181d7f680a534b2bb17eadde01dd0 (patch)
treef0373b99b9234dea1fc0645fb70d137a1382805e /libavcodec/hevc.h
parent01fac84fe4351eeadf852bd5a932eea517a9b210 (diff)
avcodec/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>
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r--libavcodec/hevc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index eecccb7f16..44c6c47a51 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -579,6 +579,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];