X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fh.263%2Fvideo.c;h=98fea24b8389832704781274cbe8abf35dc8a328;hb=17fa8a7306a6a0043facf16628d64e398d2c8051;hp=cd7d2c493547fa3e37c9422f7862e96244807ff3;hpb=526f096a692b0ee2bd9668f59ae854b858e202d5;p=swftools.git diff --git a/lib/h.263/video.c b/lib/h.263/video.c index cd7d2c4..98fea24 100644 --- a/lib/h.263/video.c +++ b/lib/h.263/video.c @@ -5,13 +5,13 @@ Copyright (c) 2003 Matthias Kramm */ -#include "../config.h" +#include "../../config.h" #include #include #include #include -#include "../lib/rfxswf.h" -#include "../lib/args.h" +#include "../rfxswf.h" +#include "../args.h" #include "h263tables.c" static char * filename = 0; @@ -241,10 +241,11 @@ void get_DC_TCOEF(TAG*tag, int t, int has_dc, int has_tcoef) } } -void readMVD(TAG*tag) +int readMVD(TAG*tag) { int index = gethuffvalue(tag, mvd); DEBUG printf("mvd index:%d\n", index); + return index; } char has_quant[] = {0,1,0,0,1}; @@ -332,8 +333,11 @@ void decode_block(TAG*tag, int pictype) } if(has_mvd[mb_type]&1) { - readMVD(tag); //horizontal - readMVD(tag); //vertical + int x,y; + x = readMVD(tag); //horizontal + y = readMVD(tag); //vertical + if(x==32 && y==32) + printf("0"); } if(has_mvd[mb_type]&2) { /* only in advanced prediction mode */ @@ -400,7 +404,7 @@ void handleVideoFrame(TAG*tag, char*prefix) sizeflags = swf_GetBits(tag, 3); switch(sizeflags) { - case 0: width = swf_GetU8(tag); height = swf_GetU8(tag); break; + case 0: width = swf_GetBits(tag,8); height = swf_GetBits(tag,8); break; case 1: width = swf_GetBits(tag, 16); height = swf_GetBits(tag, 16); break; case 2: width = 352; height = 288; break; case 3: width = 176; height = 144; break;