Fix 2 small flaws handling 8-bit subpictures that makes
my one test file work.
region->clut = *buf++;
- if (region->depth == 8)
+ if (region->depth == 8) {
region->bgcolor = *buf++;
- else {
+ buf += 1; /* Skip undefined 4-bit and 2-bit field */
+ } else {
buf += 1;
if (region->depth == 4)
GST_LOG ("Returning with %u pixels read", pixels_read);
+ *srcbuf += (gst_bit_reader_get_pos (&gb) + 7) >> 3;
+
// FIXME: Shouldn't need this variable if tracking things in the loop better
return pixels_read;
}