# HG changeset patch # User vitor # Date 1236185815 0 # Node ID 65141aec8b05068aaad2eebc26469bd3c890258d # Parent 7f0d34340349db3e056ec382fa7635a949c93566 Add more correct bound checking in filter_mb(). Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW diff -r 7f0d34340349 -r 65141aec8b05 h264.c --- 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; } }