FIX: [amlcodec] make rewind work