h264: update avctx width/height/pix_fmt when returning frame