lavc/dvdsubenc: check the type of rectangles.