read AVI palette from the end of extradata