summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_filter.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-01-11 04:22:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-02-01 17:02:35 +0100
commit09e2203b8ba6943d5c0fe6d73b65b145c3fdf98e (patch)
treeb684b704aae98798e4d3fc6d92d7fc05b6b184b9 /libavcodec/hevc_filter.c
parentc716624853339ea4b1086a3957b334829370204c (diff)
hevc: Consider first quantization group any reference to 0, 0
According to my understanding of T-REC-H.265-2013044 chapter 8.6.1. Sample-Id: 00001438-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/hevc_filter.c')
-rw-r--r--libavcodec/hevc_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c
index f3c655416a..d3f2ff1388 100644
--- a/libavcodec/hevc_filter.c
+++ b/libavcodec/hevc_filter.c
@@ -90,7 +90,7 @@ static int get_qPy_pred(HEVCContext *s, int xC, int yC,
int qPy_pred, qPy_a, qPy_b;
// qPy_pred
- if (lc->first_qp_group) {
+ if (lc->first_qp_group || (!xQgBase && !yQgBase)) {
lc->first_qp_group = !lc->tu.is_cu_qp_delta_coded;
qPy_pred = s->sh.slice_qp;
} else {