avcodec: define coded_width/height on encoding