importer: Fix improper class for an error log.
bstream: Update 'written' when seeking or reading.
ac3: Align bits at the end of parsing syncframe header.