]> git.sesse.net Git - ffmpeg/commitdiff
hevc: Consider first quantization group any reference to 0, 0
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 11 Jan 2014 03:22:50 +0000 (04:22 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 1 Feb 2014 16:02:35 +0000 (17:02 +0100)
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
libavcodec/hevc_filter.c

index f3c655416a859154b3978a1e55fc21dea9a2f630..d3f2ff1388f523e40d31fbb811e29a5b64ccdfc4 100644 (file)
@@ -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 {