avcodec: make sure visible_width/height is defined