avcodec/dvbsubdec: check region dimensions