changeset 9125:65141aec8b05 libavcodec

Add more correct bound checking in filter_mb(). Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW
author vitor
date Wed, 04 Mar 2009 16:56:55 +0000
parents 7f0d34340349
children 851ff1a23191
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Mar 04 08:47:29 2009 +0000
+++ b/h264.c	Wed Mar 04 16:56:55 2009 +0000
@@ -6493,7 +6493,7 @@
         int qp = s->current_picture.qscale_table[mb_xy];
         if(qp <= qp_thresh
            && (mb_x == 0 || ((qp + s->current_picture.qscale_table[mb_xy-1] + 1)>>1) <= qp_thresh)
-           && (mb_y == 0 || ((qp + s->current_picture.qscale_table[h->top_mb_xy] + 1)>>1) <= qp_thresh)){
+           && (h->top_mb_xy < 0 || ((qp + s->current_picture.qscale_table[h->top_mb_xy] + 1)>>1) <= qp_thresh)){
             return;
         }
     }