avcodec/dvdsubdec: factor out rectangles reset.