mpeg12enc: check dimension validity