mmvideo: check frame dimensions