From: kramm Date: Wed, 19 May 2004 07:48:00 +0000 (+0000) Subject: slight output changes. X-Git-Tag: release-0-6-0~201 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=ad685df6ece492406aa75340ed0d0b82f7276b8b slight output changes. --- diff --git a/lib/h.263/video.c b/lib/h.263/video.c index cc86371..982b0c0 100644 --- a/lib/h.263/video.c +++ b/lib/h.263/video.c @@ -297,7 +297,7 @@ void get_DC_TCOEF(TAG*tag, int t, int has_dc, int has_tcoef) run = swf_GetBits(tag, 6); level = swf_GetBits(tag, 8); if(run) - DEBUG printf("(%d) E%d", run, level); + DEBUG printf(" (%d) E%d", run, level); else DEBUG printf("E"); if(level == 0 || level == 128) { @@ -307,12 +307,14 @@ void get_DC_TCOEF(TAG*tag, int t, int has_dc, int has_tcoef) level = (int)((signed char)level); } else { int sign = swf_GetBits(tag, 1); - if(sign) + if(sign) { level = -level; - if(run) - DEBUG printf("(%d) %s%d", run, level>0?"+":"",level); - else - DEBUG printf("%s%d", level>0?"+":"",level); + } + if(run) { + DEBUG printf(" (%d) %s%d", run, level>0?"+":"",level); + } else { + DEBUG printf(" %s%d", level>0?"+":"",level); + } } pos += run+1; //DEBUG printf("run:%d level:%d\n", run, level); @@ -423,8 +425,9 @@ void decode_block(TAG*tag, int pictype) int x,y; x = readMVD(tag); //horizontal y = readMVD(tag); //vertical - if(x==32 && y==32) - printf("0"); + /*if(x==32 && y==32) + printf("0"); // prediction was 100% match + */ } if(has_mvd[mb_type]&2) { /* only in advanced prediction mode */