avcodec/h264: fix sign error
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Feb 2014 23:33:23 +0000 (00:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Feb 2014 23:33:57 +0000 (00:33 +0100)
regression since f777504f640260337974848c7d5d7a3f064bbb45

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 0a27226..67c1851 100644 (file)
@@ -4058,7 +4058,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
             }
         }
     }
-    h->qp_thresh = 15 +
+    h->qp_thresh = 15 -
                    FFMIN(h->slice_alpha_c0_offset, h->slice_beta_offset) -
                    FFMAX3(0,
                           h->pps.chroma_qp_index_offset[0],