On Sat, Dec 03, 2011 at 10:46:46AM -0800, Adrian Drzewiecki wrote: > + char *type; "const char *" is more correct. > + for (i = 0, j = 0; i < dlen; i++, j++) { > + if (tcomp) > + buffer[j] = avio_r8(s->pb); Did you test this to work? Because I'm quite convinced this should be "!tcomp"...