summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-21 00:33:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-21 00:33:57 +0100
commit76dd01ecd4ed51e0669773470ee0d8db2c2e4d3f (patch)
treeb32fcfe603a9d706aa3a6d28c0230d58717dc375 /libavcodec
parent0ad8f73f137dad1f3d0f818e22bdb2949186e9ec (diff)
avcodec/h264: fix sign error
regression since f777504f640260337974848c7d5d7a3f064bbb45 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 0a272261a4..67c1851005 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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],