set subtitle resolution to video resolution when avctx->width and avctx->height are zero.