[FFmpeg-soc] [soc]: r641 - rv40/rv40.c
kostya
subversion at mplayerhq.hu
Thu Aug 9 06:53:38 CEST 2007
Author: kostya
Date: Thu Aug 9 06:53:38 2007
New Revision: 641
Log:
Do not read block value from another slice at all
Modified:
rv40/rv40.c
Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c (original)
+++ rv40/rv40.c Thu Aug 9 06:53:38 2007
@@ -706,12 +706,10 @@ static int rv40_decode_mb_info(RV40DecCo
if(s->pict_type == P_TYPE){
if(!s->first_slice_line){
blocks[r->mb_type[mb_pos - s->mb_stride]]++;
- if(s->mb_x)
+ if(s->mb_x && !(s->mb_x == s->resync_mb_x && (s->mb_y-1) == s->resync_mb_y))
blocks[r->mb_type[mb_pos - s->mb_stride - 1]]++;
if(s->mb_x-1 < s->mb_width)
blocks[r->mb_type[mb_pos - s->mb_stride + 1]]++;
- if(s->mb_x == s->resync_mb_x && (s->mb_y-1) == s->resync_mb_y)
- blocks[r->mb_type[mb_pos - s->mb_stride - 1]]--; //that's another slice
}
if(s->mb_x && !(s->first_slice_line && s->mb_x == s->resync_mb_x))
blocks[r->mb_type[mb_pos - 1]]++;
More information about the FFmpeg-soc
mailing list