#include #include #include void dumpchunk(int cc1,int cc2,FILE*fi,FILE*fo){ int c1,c2; c1=fgetc(fi);c2=fgetc(fi); int l=(c1<<8)+c2; fprintf(stderr,"chunk: %02x%02x (%d)\n",cc1,cc2,l); fputc(cc1,fo);fputc(cc2,fo); fputc(c1,fo);fputc(c2,fo); for(int t=0;t