[FFmpeg-cvslog] avcodec/h264: fix sign error

Michael Niedermayer git at videolan.org
Fri Feb 21 00:38:35 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 21 00:33:23 2014 +0100| [76dd01ecd4ed51e0669773470ee0d8db2c2e4d3f] | committer: Michael Niedermayer

avcodec/h264: fix sign error

regression since f777504f640260337974848c7d5d7a3f064bbb45

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=76dd01ecd4ed51e0669773470ee0d8db2c2e4d3f
---

 libavcodec/h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 0a27226..67c1851 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],



More information about the ffmpeg-cvslog mailing list