fix ACodec buffer overflow (in netflix for example)