summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-02-12 20:38:40 +0200
committerLuca Barbato <lu_zero@gentoo.org>2016-02-13 14:19:54 +0100
commit8c399bd5cefd572eceb448981fcb6d4dbca35d27 (patch)
tree45e9930c6310750b33fd48df5efde3353496a7da /libavcodec/hevc_ps.c
parente579d8b29cdb9b42c50a0fde277dfb047c1466ad (diff)
downloadffmpeg-streaming-8c399bd5cefd572eceb448981fcb6d4dbca35d27.zip
ffmpeg-streaming-8c399bd5cefd572eceb448981fcb6d4dbca35d27.tar.gz
dxva2_hevc: properly signal the num_delta_pocs from the SPS RPS
ucNumDeltaPocsOfRefRpsIdx needs to contain the flat value from the SPS RPS, and not the final computed value from the slice header RPS, as this calculation is done internally by the driver again. Sample-Id: http://trailers.divx.com/hevc/Sintel_4k_27qp_24fps_1aud_9subs.mkvi Signed-off-by: RĂ©mi Denis-Courmont <remi@remlab.net>
Diffstat (limited to 'libavcodec/hevc_ps.c')
-rw-r--r--libavcodec/hevc_ps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 2faee96..583fa06 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -134,6 +134,7 @@ int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx,
return AVERROR_INVALIDDATA;
}
rps_ridx = &sps->st_rps[sps->nb_st_rps - delta_idx];
+ rps->rps_idx_num_delta_pocs = rps_ridx->num_delta_pocs;
} else
rps_ridx = &sps->st_rps[rps - sps->st_rps - 1];
OpenPOWER on IntegriCloud