#include<stdio.h>
unsigned char M[65052],N[256];FILE*I,*O;int*Y=M+22,Z,S,X,B,C,V,W,T,A;R(a,b){for
(T=0;a;a/=2,b+=b)a&1?T^=b:0;return T;}main(i,v)char**v;{fseek(I=fopen(v[1],"rb"
),i=0,S=2);for(Z=ftell(I);X<Z&&S;M[5]&4&&O?fclose(O),O=0:0){fseek(I,X,S=0);if((
A=fread(M,1,65052,I))>26){if(memcmp(M,"OggS",4))goto r;for(B=(W=M[26])+27;B<=A
&&W--;)B+=M[27+W];if(B<=A){S=B;B=*Y;for(C=V=*Y=0;V<S;C=C<<8^R(W
>>6&3,881225847)
^R(W&63,79764919))W=C
>>24^M[V++];if((*Y=B)-C)r:for(S=0;--S>-A&&79-M[-S];);}}X+=
0<S?fwrite(M,1,S,!O?sprintf(N,"%d.ogg",i++),O=fopen(N,"wb"):O),S:(M[5]=4,-S);}}
んじゃogg抽出を貼ってみる
これで鋏がogg対応したら禿藁